-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yml
410 lines (306 loc) · 17.4 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
## Inside this file is where all options and general settings can be modified. ##
# All MySQL settings can be set and handled within this section.
mysql:
# The "use-ssl" feature enables SSL connection support.
use-ssl: false
database: "DisplayShops"
# The "host" option can be left blank to determine whether mysql is used or not.
# If disabled, SQLite will be used locally instead.
host: ""
port: "3306"
username: "root"
password: ""
# This is the maximum size of the log file (In Megabytes). If the file size exceeds this values, the log will not be written to.
# (Note: Set this value to -1 to have no limit.)
log-max-size: -1
# If this is disabled, Vault will be ignored and the built-in physical item currency will be used.
use-vault: true
# If this is enabled and Towny is installed, shop plots available to the player will be the only allowed area for shops.
towny-shop-plots-only: true
# If this is disabled, transactions to shops where the owner is not online will be blocked.
offline-mode: true
# If this is enabled, players in creative can not perform certain actions on a shop.
block-creative: false
# This is the auto save task interval in seconds.
auto-save-interval: 900
# How long should chat interactions wait before they cancel themselves (In Seconds)?
# (Note: Set to -1 to disable timeout.)
chat-interaction-timeout: 15
# This option will check shops and delete them if their base-block is invalid every time the delay below is reached (In seconds).
base-block-sync-delay: -1
# This is how long a shop's sell or buy transaction must remain untouched before the dynamic modifier is reset (In seconds).
dynamic-price-change: 14400
# These are the intervals of remaining time until expire where the renter will be notified about renewal (In seconds).
rent-notify-intervals: [ 7200, 3600, 1800, 900, 300, 60, 15, 5 ]
# This is the default rent expire duration when a player rents out a market region (In seconds).
rent-expire-duration: 259200
# This is the time a market region's rent will be extended per renew.
rent-extend-duration: 86400
# This is the cost a player will need to pay to renew a market region they are already renting.
rent-renew-cost: 250.0
# This is the cost a player will need to pay to begin renting a market region.
rent-cost: 300.0
# How long should a player have to wait before they teleport to a shop they want to go to? (In seconds)
visit-delay: 5
# This is the price that visiting a shop will cost a player when the feature is used.
# (Note: There is no confirmation aside the error and final messages.)
visit-charge: 100.0
# If this is enabled, players will be unable to use the visit command nor any features related to it.
shop-visiting: true
# If this is enabled, players can broadcast their shop's location and shop item to other players on the server.
allow-broadcasting: true
# This is the duration the player must wait in between broadcasting their shop to other players.
shop-broadcast-cooldown: 15
# This is the default color that will be used for the item name in the broadcast JSON message.
# (Note: If the item has a custom name, that will take priority over this color)
shop-broadcast-color: "&f"
# This is how many assistants a shop can have at a single given time.
assistants-cap: 5
# If this is enabled, players will only have the ability to set the shop and trade items of a shop to an item in hand with an amount of 1.
# (Note: This basically just forces the unit count of a shop to always be 1 instead of any value. DOES NOT EFFECT EXISTING SHOPS)
force-single-items: false
# This is the word limit for all shop descriptions.
description-character-limit: 30
# This is the description wrapping mechanic that will wrap the text to a new line based on word size.
description-long-word-wrap: 16
# This is how many words a description can have per line.
description-word-line-limit: 5
# Strings within this filter will be remove from all shop's descriptions.
# (Note: Phrases can be implemented into this list as well. The list can also be changed to a vertical format like other lists in the configuration.)
description-filter: [ "fuck", "shit", "cunt", "fag", "faggot", "bitch", "dick", "damn", "www.", ".com", ".net" ]
# When a shop item is inserted into a shop, the shop's description will be set to the item's enchantments in addition to the "enchantment-description-format" option below.
# (NOTE: If the shop's item has no enchantment this will not touch the description.)
enchantment-description-set: true
# This format is added to the end to display to show how many other enchantment there are past the "enchantment-cut-count".
enchantment-description-format: "({remainder} more)"
# This option determines how many enchantments are shown in the "enchantment-description-format" before it simply just grabs the remainder and displays that.
enchantment-cut-count: 3
# When a shop item is inserted into a shop, the shop's description will be set to the item's potion effects in addition to the "potion-description-format" option below.
# (NOTE: If the shop's item has no enchantment this will not touch the description.)
potion-description-set: true
# This format is added to the end to display to show the how many custom effects are attached to the potion.
potion-description-format: "({remainder} more)"
# This text is used along side the potion type to determine if the potion has extended duration or not.
potion-description-extended: "Extended"
# This text is used along side the potion type to determine if the potion is upgraded in terms of potency or not.
potion-description-upgraded: "Upgraded"
# If this is enabled, the display item above the shop's base block will always be a single item.
force-single-stack: false
# If this is enabled and a shop is deleted, the creation item will drop as well.
creation-item-drop: true
# If this is enabled, empty shops will display with a barrier block as the floating item instead of nothing.
empty-shop-item: true
# If this option is enabled, shops will use the owner's balance instead of the stored balance when they are online.
sync-owner-balance: false
# This is the price the player must pay to get a shop creation item.
creation-item-price: 250
# If this is greater than zero, the defined percentage will be taken from the buy/sell transaction value before it reaches a player in the form of tax.
transaction-tax: 0
# If this is enabled, dynamic prices will be usable and vice-versa.
dynamic-prices: true
# This is the increment of each time the buy-price will be increased by the percentage listed below. For example, if the increment is 3 the shop will not stack a percentage
# on top of the shop's base buy-price until its total transaction count can be divided by 3.
dynamic-buy-increment: 3
dynamic-buy-percentage: 0.05
# This is the increment of each time the sell-price will be decreased by the percentage listed below. For example, if the increment is 3 the shop will not stack a percentage
# on top of the shop's base sell-price until its total transaction count can be divided by 3.
dynamic-sell-increment: 3
dynamic-sell-percentage: 0.05
# This is used to enhance the format of the numbers displayed throughout the plugin. (Note: Set this to 0 for whole numbers)
minimum-fraction-digits: 2
# If this option is enabled, numerical entries must all be whole numbers. Decimals and non-numerals will send the "invalid-amount" message to the player.
whole-number-entries: false
# If this option is enabled, numbers will be formatted into a short manner (e.g 1.2k or 1.4m)
# (Note: The 'minimum-fraction-digits' option only affects the number before this format, the short format has around three decimal places respectfully)
short-number-format: false
# This is the message the player must type to exit a chat interaction.
chat-interaction-cancel: "cancel"
# This is the link that will be suggested to the player when clicking the help command message.
# (Note: Setting this to "wiki" will use the default GitHub page link. Setting it to "" will disable it completely.)
help-command-link: "wiki"
# This is the DEFAULT base material of the shop itself. This material MUST be a block and will ONLY be used when the player has no permission based base-block or an invalid one.
# (Note: The format used can either be just the material name or <material>:<durability> for older versions and damaged items)
shop-block-material: "END_PORTAL_FRAME:0"
# If this is enabled, the glass display will be ignored.
hide-glass: false
# This is how quickly (in ticks, 20 ticks = 1 second) a display will update when looked at by a player.
# (Note: The higher the value, the more efficient; however, it will not look as good)
view-tick: 4
# The player must at least this close to the base block before looking at the shop will display.
# (Note: The lower the value, the more efficient; however, this will require the player be closer to the base block)
view-distance: 10
# If this option is enabled, shop displays will remain visible at all times while the player is in range.
# (NOTE: This feature has a distance calculation based on chunks)
always-display: false
# If broadcasting is allowed, the worlds in the list below will be where the shop is broadcast.
broadcasting-worlds:
- "world"
- "world_nether"
- "world_the_end"
# These are the offsets for each material that allow you to mess with the entire display of shops to make them look
# better on the base material.
material-based-offsets:
- "END_PORTAL_FRAME:0.5,-0.4,0.5"
- "ENDER_PORTAL_FRAME:0.5,-0.4,0.5"
- "CHEST:0.5,-0.2,0.5"
# This is the hologram format that is used when a shop is created or when the shop item is invalid.
invalid-item-format:
- "&cEmpty Display Shop"
- "&7Owner: &e{owner}"
# This is the hologram format that is used when a shop is fully created and has a shop item.
# (Note: The {description} placeholder must be on a line by itself or only color code values)
valid-item-format:
- "{item}&r &7x&a{amount}"
- "&b{description}"
- "&7Buy from shop for &e${buy-price}"
- "&7Sell to shop for &e${sell-price}"
- "&7Stock: &e{stock} &7Owner: &e{owner}"
# This is the hologram format that is used when a shop has a unlimited stock amount and has no owner.
# (Note: The {description} placeholder must be on a line by itself or only color code values)
admin-shop-format:
- "{item}&r &7x&a{amount}"
- "&b{description}"
- "&7Buy from shop for &e${buy-price}"
- "&7Sell to shop for &e${sell-price}"
- "&cAdmin Shop &7(Stock: &e{stock}&7)"
# This is the hologram format that is used when a shop has a unlimited stock amount and has no owner,
# but has no valid shop item.
admin-invalid-item-format:
- "&cEmpty Admin Shop"
- "&7Please come back later"
# This is the maximum sell price a player can set on their shop.
sell-price-limit: 9999999999
# This is the maximum buy price a player can set on their shop.
buy-price-limit: 9999999999
# This is the maximum stored currency a shop can have as a balance.
max-stored-currency: 9999999999
# This is the maximum amount size a player can set on the item inside the shop.
max-item-stack-size: 256
# This is the default shop limit a player can have at one time.
# (Note: This can be change for each player via permissions)
default-shop-limit: 5
# These are the default prices for shops.
default-buy-price: 100
default-sell-price: 25
# This is the overall maximum stock a single shop can have at one time.
max-shop-stock: 1000
# These are the maximum unit counts a player can buy or sell from the buy/sell all feature in one transaction.
maximum-buy-all: 36
maximum-sell-all: 36
# If this option is enabled, shops will require the stock to be at zero before allowing actions such as shop deletion.
require-empty-stock: true
# If this option is enabled, the transaction interface will close after a transaction is complete.
close-transaction-gui: true
# This is the block distance a shop must be from another shop (Regardless another shop is unable to be placed in a one block radius).
required-shop-distance: 1
# Worlds in this list will not allow shop creations.
blocked-worlds:
- "creative_world"
# Materials in this list will block shops from being created on them.
blocked-material-list:
- "LAVA"
- "STATIONARY_LAVA"
# Item materials in this list are unable to be sold in the shops.
# (Please not that shops whom already contain these items will NOT be affected.)
# Format: <material:durability> (Don't put a durability if it doesn't matter)
blocked-item-list:
- "END_PORTAL"
- "PORTAL"
# This is the list where specific materials can be given direct limitation to the maximum buy and sell price (max per one of that material in a stack "outside unit count").
max-material-prices:
DIAMOND_SWORD:
buy: 50000.0
sell: 25000.0
# This is the list where specific materials can be given direct limitation to the minimum buy and sell price (min per one of that material in a stack "outside unit count").
min-material-prices:
DIAMOND_SWORD:
buy: 100.0
sell: 25.0
# Event commands are commands that will execute under specific events or actions.
# Each of the lists are empty by default. Similar to every other list in the configuration, follow the format of YAML.
# (Note: Do not begin with a slash unless two slash commands such as in WorldEdit are needed and end ALL commands with either :PLAYER or :CONSOLE)
event-commands:
# This is the list of commands that will be executed when a shop is opened (Transaction Interface).
shop-open: [ ]
# This is the list of commands that will be executed when a shop is opened (Edit Interface).
shop-edit: [ ]
# This is the list of commands that will be executed when a shop is opened (Buy Transaction Completion).
shop-buy: [ ]
# This is the list of commands that will be executed when a shop is opened (Buy Transaction Completion).
shop-sell: [ ]
# This is the list of commands that will be executed when a shop's item is set.
shop-item-set: [ ]
# This is the list of commands that will be executed when a shop's trade item is set.
trade-item-set: [ ]
# This is the list of commands that will be executed when a shop's buy price is changed.
shop-buy-price: [ ]
# This is the list of commands that will be executed when a shop's sell price is changed.
shop-sell-price: [ ]
# This is the list of commands that will be executed when a shop has items withdrawn.
shop-withdraw: [ ]
# This is the list of commands that will be executed when the shop has had items deposited.
shop-deposit: [ ]
# This is the list of commands that will be executed when the shop's buy limit is changed.
shop-buy-limit: [ ]
# This is the list of commands that will be executed when the shop's sell limit is changed.
shop-sell-limit: [ ]
# This is the list of commands that will be executed when the shop's amount is changed.
shop-amount: [ ]
# This is the list of commands that will be executed when the shop's description is changed.
shop-description: [ ]
# This is the list of commands that will be executed when a shop is deleted.
shop-delete: [ ]
# Here you can customize sounds and effects.
# (Note: Make sure these always match your MC version)
immersion-section:
shop-creation-sound: "ENTITY_ITEM_PICKUP"
shop-creation-particle: "CLOUD"
shop-delete-sound: "BLOCK_WOOD_BREAK"
shop-delete-particle: "SMOKE_NORMAL"
shop-visit-particle: "CLOUD"
shop-visit-sound: "ENTITY_ENDERMAN_TELEPORT"
shop-bbm-sound: "ENTITY_SNOWBALL_THROW"
shop-bbm-particle: "FLAME"
# Here is where the shop creation item can be fully configured.
# (Note: The material is the 'shop-block-material' defined under the 'shop-options' section)
shop-creation-item:
# Tells the plugin if the player can craft it or not.
craftable: true
# This option is the recipe for this creation item, 3 slots per row. Each material may have a durability if the material is followed with
# a colon. To separate slots simply use a comma (Use -1 as the durability for it to not matter).
recipe:
line-one: "AIR:-1,GLASS:-1,AIR:-1"
line-two: "END_STONE:-1,CHEST:-1,END_STONE:-1"
line-three: "OBSIDIAN:-1,OBSIDIAN:-1,OBSIDIAN:-1"
# This determines if the creation item will glow.
enchanted: false
display-name: "&b&lDisplay Shop"
# Enchantments use the ids from: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
# (NOTE: Use the format "<id>:<level starting at 0>")
enchantments: [ ]
# Flags work similar to the enchantments and pull the ids from: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ItemFlag.html
# (NOTE: You only need to add the id, if the flag is in the list it is just set to true.)
flags: [ ]
# This is for special use of textures. Leave at -1 to avoid.
model-data: 0
lore:
- ""
- "&aPlace &7to create a new empty shop."
# Here is where the shop currency item can be fully configured.
# (Note: This is only used as the currency if Vault is disabled)
shop-currency-item:
# If this is enabled, shop owners will not be able to change the trade item and this item will be used.
force-use: false
material: "GOLD_INGOT"
durability: 0
# Enchantments use the ids from: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html
# (NOTE: Use the format "<id>:<level starting at 0>")
enchantments: [ ]
# Flags work similar to the enchantments and pull the ids from: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ItemFlag.html
# (NOTE: You only need to add the id, if the flag is in the list it is just set to true.)
flags: [ ]
# This is for special use of textures. Leave at -1 to avoid.
model-data: 0
# Leave the display name and lore blank for no item meta (Vanilla Item).
display-name: ""
lore: [ ]