-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.yml
270 lines (258 loc) · 14.1 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# default config.yml for MysqlPlayerDataBridge
# config version 3.31.5
#MySQL Database details
database:
mysql:
#MySQL server address
host: 127.0.0.1
#MySQL server port (default 3306)
port: 3306
#Database name (NOTE! You need to create the database, then the plugin will create the tables.)
databaseName: 'mydatabase'
#Tables names (the plugin will auto create them)
TablesNames:
#Inventory and Armor table name.
inventoryTableName: 'mpdb_inventory'
#Enderchest table name.
enderchestTableName: 'mpdb_enderchest'
#Experience table name.
experienceTableName: 'mpdb_experience'
#PotionEffects table name.
potionEffectsTableName: 'mpdb_potionEffects'
#Health, food and air table name.
healthFoodAirTableName: 'mpdb_health_food_air'
#Location table name.
locationTableName: 'mpdb_location'
#Economy table name.
economyTableName: 'mpdb_economy'
#User name
user: 'admin'
#User password
password: 'cheesecake'
#SSL connection
sslEnabled: false
#This maintenance task runs async with a 2 min delay after the server starts.
removeOldAccounts:
#Enable or disable database clean up of old accounts. | (true or false)
enabled: false
#Inactivity in days. Default 60 days.
inactivity: 60
#Other configurable options
General:
#Enable or disable sharing of player data features
enableModules:
#Share players inventory | (true or false)
shareInventory: false
#Share players gamemode | (true or false)
shareGamemode: false
#Share players equipped armor | (true or false)
shareArmor: false
#Share players enderchest | (true or false)
shareEnderchest: false
#Share experience | (true or false)
shareExperience: false
#Share potion effects | (true or false)
sharePotionEffects: false
#Share players health level | (true or false)
shareHealth: false
#Share players food and saturation level | (true or false)
shareFood: false
#Share players air level | (true or false)
shareAir: false
#Share players location | (true or false)
#NOTE! Sharing bed spawn location requires share location enabled!
shareLocation: false
shareBedSpawn: false
#Share players economy accounts | (true or false)
#!!! NOTE !!!! For economy sync you need to install Vault and an Economy system.
shareEconomy: false
#Extra economy sync options. Note that this requires the economy sync to be enabled.
economyOptions:
#Enable support for ChestShop offline money sync. | (true or false)
#NOTE! A server restart is required if you change settings here.
#Only available for UUID compatible servers. (1.7.10 and up)
#------------------------------------------------------------------
#Enable support for the popular ChestShop plugin: https://dev.bukkit.org/projects/chestshop
ChestShop-Support: false
#Enable support for QuickShop plugin: https://dev.bukkit.org/bukkit-plugins/quickshop-notlikeme/
#Because the QuickShop API does not provide info about the tax I had to code it in this plugin too, this setting should be the same as in QuickShop config.
#To disable the tax set it to: QuickShop-SalesTax: 0.00
QuickShop-Support: false
QuickShop-SalesTax: 0.05
#Enable support for premium plugin Shop: https://www.spigotmc.org/resources/shop-a-simple-intuitive-shop-plugin.9628/
#Important! Only works for virtual currency. The Shop plugin needs players data files to work do not remove the world/playerdata folder.
Shop-Support: false
#Enable support for plugin AuctionHouse: https://www.spigotmc.org/resources/auctionhouse.61836/
AuctionHouse-Support: false
#Enable support for plugin CrazyAuctions: https://www.spigotmc.org/resources/crazy-auctions.25219/
CrazyAuctions-Support: false
#Enable support for plugin ShopChest: https://www.spigotmc.org/resources/shopchest.11431/
ShopChest-Support: false
#Enable support for plugin ShopChestPlayerShopGUI+: https://www.spigotmc.org/resources/playershopgui.37707/
PlayerShopGUI-Support: false
#Enable support for plugin CMI: https://www.spigotmc.org/resources/cmi-270-commands-insane-kits-portals-essentials-economy-mysql-sqlite-much-more.3742/
# !!IMPORTANT!!! If you use CMI economy and enable support for CMI disable all other shop plugins support!
# CMI has it's own events and integration with other shop plugins is no longer needed as changes will be taken from CMI directly.
CMI-Support: false
#Enable support for plugin zAuctionHouse: https://www.spigotmc.org/resources/zauctionhouse-lite-1-7-1-15-auction-house-plugin.63926/
zAuctionHouse-Support: false
#Enable support for Essentials Economy commands for offline players.
#Will handle eco commands: /eco take|give|set|reset for offline players that are in the database.
#Enable support for Essentials Economy commands for offline players.
#Will handle eco commands: /eco take|give|set|reset for offline players that are in the database.
EssentialsEconomyCommands-Support: false
#Save online players data task. If you disable this task data will only be saved when the player disconnects.
saveDataTask:
#Enable or disable the data save task. | (true or false)
enabled: true
#Time between data saves in minutes. | Default 3 min.
interval: 3
#Hide the data save task log messages.
hideLogMessages: false
#Disable sounds generated by this plugin. The sync confirmation sound for example. | (true or false)
disableSounds: false
#This will disable inventory, armor and enderchest sync for players in creative mode. | (true or false)
#Can be useful in certain cases where you have 2 survival servers and give cretive access to some in one survival server and don't want them to get the creative items on the other servers. Note that you will require another plugin to create a separate inventory for creative mode.
disableCreativeItemShare: false
#Kick players when sync fails.
kickOnFailedSync: false
#Extra options for location sync.
locationSyncOptions:
#Players need to be online some time in order to update their location.
#In seconds. Set to 0 to disable. (Default 0 seconds)
onlineTimeToSaveLocation: 0
#Commands that will run for players that join for the first time. Commands will be executed as console after sync is complete.
#Supports multiple commands. The tag <PlayerName> will be replaced by the player name that joined for the first time.
#To disable this feature just remove all commands.
New-Players-Cmd:
- 'tell <PlayerName> Cmd 1 sample - you should remove this from the MPDB config'
- 'tell <PlayerName> Cmd 2 sample - you should remove this from the MPDB config'
#This feature allows you to delete folders or files when the server shuts down or restarts.
#For example: Players data and stats folder, or other plugins that store data as file based and are not needed.
#As in time the server will store many players data there is a need to clean up unneeded files.
DataCleanup:
#Enable or disabled data clean up | true or false
Enabled: false
#This can include folders or files. The root directory is the server main folder. (Tested on Linux)
#NOTE!!! Some plugins need the world/playerdata files for offline players else they will have problems.
CleanUp-Paths:
- 'world/playerdata'
- 'world/stats'
#Debug console messages.
Debug:
#Economy sync debug messages.
EconomySync: false
#Inventory sync debug messages.
InventorySync: false
#Health sync debug messages.
HealthSync: false
#Chat messages, supports color and format codes. To disable a chat message set it to '' Example: loginSyncConfirmation: ''
#Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes
ChatMessage:
#This message will be sent to players after data sync is complete.
loginSyncConfirmation: '&2&l[MPDB] &eData sync complete!'
loginSyncStarted: '&2&l[MPDB] &eLoading your data...'
loginSyncFailed: '&4&l[MPDB] &cFailed to load your data! Contact a staff member.'
noPermission: '&2&l[MPDB] &eYou do not have permission.'
configReload: '&2&l[MPDB] &eConfig reload complete! Check the server log or console for details.'
importingData: '&2&l[MPDB] &eImporting players data to the database... Check server console for details.'
importingDataComplete: '&2&l[MPDB] &eData import complete!'
inventorySyncError: '&4[WARNING] &cError loading your inventory! Contact the staff team.'
inventorySyncBackup: '&6[!] &eRestored the local inventory! Don''t leave items in your inventory when you disconnect!'
armorSyncError: '&4[WARNING] &cError loading your armor! Contact the staff team.'
armorSyncBackup: '&6[!] &eRestored the local armor! Don''t leave items in your inventory when you disconnect!'
#The place holder %money% will be replaced by the amount of money the player will receive.
offlineMoneyReceived: '&2&l[MPDB] &eYou received&6 %money% &emoney from your shop sales.'
syncInProgress: '&4&l[MPDB] &cData sync in progress! Please wait...'
reloadCmdWarning: '&4&l[MPDB] &cThis plugin does not recommend server reloads. If you have issues after running this command stop using it.'
#Help menu with multi line support.
helpMenu:
header:
- ' '
- '&6-=-=-=-=-=-< &e&lMySQL Player Data Bridge&6 >-=-=-=-=-=-=-'
- ' '
footer:
- ' '
- '&6-=-=-=-=-=-=-=-=-=-< &e&lHelp Page&6 >-=-=-=-=-=-=-=-=-=-'
- ' '
footer-moderator:
- ' '
- '&6-=-=-=-=-=-=-=-=-< &e&lModerator Help Page&6 >-=-=-=-=-=-=-=-=-'
- ' '
footer-admin:
- ' '
- '&6-=-=-=-=-=-=-=-=-< &e&lAdmin Help Page&6 >-=-=-=-=-=-=-=-=-'
- ' '
text-default:
- '&7&oSync players data across servers.'
- '&7&lPlugin Download:&f https://goo.gl/PE8pDM'
text-moderator:
- '&7 Open a players inventory:'
- '&8&l>> &f/mpdb inv <name>'
- '&7 View a player armor:'
- '&8&l>> &f/mpdb armor <name>'
- '&7 Edit a player enderchest:'
- '&8&l>> &f/mpdb end <name>'
- '&7 Check a player balance:'
- '&8&l>> &f/mpdb ecoBal <name>'
- '&7 Change a player balance:'
- '&8&l>> &f/mpdb ecoSet <name> <amount>'
text-admin:
- '&7 Reload plugin config:'
- '&8&l>> &f/mpdb reload'
- '&7 Kick all players and save data:'
- '&8&l>> &f/mpdb saveAndKick'
- '&7 Import players data into the database:'
- '&8&l>> &f/mpdb importData'
- '&7 Delete a player from the database:'
- '&8&l>> &f/mpdb delete <name>'
text-console:
- '&7 Check a player balance:'
- '&8&l>> &f/mpdb ecoBal <name>'
- '&7 Change a player balance:'
- '&8&l>> &f/mpdb ecoSet <name> <amount>'
- '&7 Reload plugin config:'
- '&8&l>> &f/mpdb reload'
- '&7 Import players data into the database:'
- '&8&l>> &f/mpdb importData'
- '&7 Delete a player from the database:'
- '&8&l>> &f/mpdb delete <name>'
- '&7 Kick all players and save data:'
- '&8&l>> &f/mpdb saveAndKick'
#Other messages
Commands:
inventoryUsage: '&cUsage: &6/mpdb inv <name>'
inventoryInfo: '&cInfo: &7Open a player inventory. Replace <name> with the player name.'
armorUsage: '&cUsage: &6/mpdb armor <name>'
armorInfo: '&cInfo: &7Edit a player armor. Replace <name> with the player name.'
enderchestUsage: '&cUsage: &6/mpdb end <name>'
enderchestInfo: '&cInfo: &7Edit a player enderchest. Replace <name> with the player name.'
ecoBalUsage: '&cUsage: &6/mpdb ecoBal <name>'
ecoBalInfo: '&cInfo: &7Check a player balance. Replace <name> with the player name.'
ecoSetUsage: '&cUsage: &6/mpdb ecoSet <name> <amount>'
ecoSetInfo: '&cInfo: &7Change a player balance. Replace <name> with the player name and <amount> with new balance.'
ecoSetTip: '&2&l[MPDB] &eReplace <amount> with a number!'
deleteUsage: '&cUsage: &6/mpdb delete <name>'
deleteInfo: '&cInfo: &7Delete a player from the database. Replace <name> with the player name.'
cmdNotFound: '&cCommand not found! For help do: &6/mpdb help'
playerNotFound: '&2&l[MPDB] &ePlayer not found!'
#The place holder %playerName% will get replaced by the player name.
inventoryOpen: '&2&l[MPDB]&c %playerName% &einventory.'
armorOpen: '&2&l[MPDB]&c %playerName% &earmor.'
enderchestOpen: '&2&l[MPDB]&c %playerName% &eenderchest.'
deleteData: '&2&l[MPDB]&c %playerName% &edata deleted!'
#The place holder %balance% will be replaced by the player balance.
ecoSet: '&2&l[MPDB]&c %playerName% &ebalance set! New balance: %balance%'
ecoBalance: '&2&l[MPDB]&c %playerName% &ebalance: %balance%'
#Essentials eco commands messages.
userNotInDB: '&4&l[MPDB] &cCould not find user in database!'
userOnline: '&4&l[MPDB] &cPlayer is online on another server in sync!'
essentialsEcoReset: '&2&l[MPDB] &aUser balance reset complete!'
essentialsEcoGive: '&2&l[MPDB] &aAdded money successfully!'
essentialsEcoTake: '&2&l[MPDB] &aRemoved money successfully!'
essentialsEcoSet: '&2&l[MPDB] &aBalance set successfully!'
essentialsEcoBal: '&2&l[MPDB] &aBalance for %name% is: %balance%'
#Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes
KickMessages:
saveAndKickCommand: '&cServer is restarting please come back in 20 seconds.'
syncFailedKick: '&cData sync failed! Join again or contact the staff team.'