-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
95 lines (90 loc) · 3.79 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
# Database configuration
database:
# The database type. "sqlite" and "mysql" are supported.
type: sqlite
# Edit these settings only if you choose "sqlite".
sqlite:
# The file name of the database in the plugin data folder.
# You can also put an absolute path here.
file: data.sqlite
# Edit these settings only if you choose "mysql".
mysql:
host: 127.0.0.1
# Avoid using the "root" user for security reasons.
username: root
password: ""
schema: xialotecon
# The maximum number of simultaneous SQL queries
# Recommended: 1 for sqlite, 2 for MySQL. You may want to further increase this value if your MySQL connection is very slow.
worker-limit: 1
data-model:
# About loading, saving and synchronizing
# notify-changes: When some data are changed on this server, notify other servers about it.
# Set to false if you only use XialotEcon on this server, or if you are not using a shared database.
# "garbage" and "store" are for more advanced users.
# garbage: If some data aren't used for a long time, unload them from memory.
# recommended values:
# "never" only if there is a finite amount of them
# e.g. you won't have many currencies, but you will have many accounts as more players login
# "30s" if the data would not be used continuously
# e.g. accounts will be used continuously as the player stays online, but transactions will become unused very quickly
# "10min" if the data would be used continuously
# store: The frequency of saving changes.
# recommended values:
# "1s" only if the data are rarely changed and the database is shared with other servers also running XialotEcon
# e.g. currency data consist of currency names and symbols, which are rarely changed.
# e.g. transaction is rarely changed once created. it is usually just accessed rather than changed.
# "3s" if the data may be frequently changed, and it has a long garbage time on other servers
# e.g. account has a long garbage time, and it is frequently changed (if the player pays/receives money), and the account may be accessed from other servers
types:
xialotecon.currency:
garbage: never
store: 1s
notify-changes: true
xialotecon.account:
garbage: 10min
store: 3s
notify-changes: true
xialotecon.transaction:
garbage: 30s
store: 1s
notify-changes: true
xialotecon.bank.interest.constant.ratio:
garbage: 10min
store: 1s
notify-changes: true
xialotecon.bank.interest.constant.diff:
garbage: 10min
store: 1s
notify-changes: true
# how long should update feed last for in the database?
feed-persistence: 1min
currency:
# If a currency is not in the database, it will be added.
# If a currency is already in the database but the values are different, this config will overwrite the settings in the database.
defaults:
dollar:
prefix: "$"
coin:
suffix: " coins"
account:
# If an account hasn't been accessed for a long time, delete the account automatically
obsolete-time: 60d
# XialotEcon modules will try to guess which account hte player wants to use. If it cannot be guessed reliably, the player will be asked to choose.
# This value determines how sure the plugin needs to be to automatically choose the account.
default-distinction: 10
player:
# Default accounts to setup for the player.
# These accounts will only be created when the player joins this server (with XialotEcon installed) the first time. If the accounts have been deleted, they will not be recreated.
# "amount" is the initial balance.
# "type" can be "cash" or "bank".
defaults:
- amount: 100
currency: dollar
type: cash
- amount: 100
currency: dollar
type: bank
interest: ratio 0.01
...