Configuration
Config Overview
The main file is plugins/XShop/config.yml. The shops are not in it: each one is a file in shops/ (see Shops & Products). Below is every setting, with its default.
- An update adds its new settings with the comments that explain them, and never changes a value you set. The two sections you fill with names of your own,
modifiersandevents.scheduled, are never filled back in. - A YAML mistake leaves the file exactly as it is. XShop starts on its shipped settings, or keeps those it had when the mistake comes with a reload, and
/xshop reloadsays so: config.yml has a YAML mistake and was not read, with the line. - A value that cannot be read is replaced by its default, and the console says which.
How values are written
| Kind | Written |
|---|---|
| A share | 30%, or 30; a bare number of one or less is a fraction, so 0.3 is 30% too |
| A change | -20% (twenty percent less), +50%, 0 (unchanged), or the multiplier itself: x1.5 |
| A duration | 90s, 30m, 6h, 7d, 1w, 1d12h; a bare number is seconds |
| A price | 12.5, or "12,5" |
The same holds in the shop files.
General
# Language for this plugin only. Left out, it follows the language: setting of XCore.
#language: "en"
debug: false
update:
check: true
notifications: true # tell staff with xshop.update when they join
# The currency of a shop or a product that names none.
# Empty: XCore's main currency, or the economy another plugin registered with Vault.
# An XCore currency: its id, as in XCore's config.yml (economy.currencies).
# "vault": always the economy registered with Vault.
default-currency: ""
# The time zone daily limits, scheduled sales and rotating shops are counted in.
# Empty: the server's own. Otherwise a zone name such as "Europe/Paris".
time-zone: ""
# The hour of day (0 to 23) at which daily and weekly limits start again.
reset-hour: 0
update.check asks GitHub for the latest version when the server starts, off the startup path, and writes it in the console with its notes. With update.notifications, staff holding xshop.update (op by default) are told about it when they join. A default-currency this server does not have falls back on the main one. reset-hour also decides when monthly limits and rotating shops turn over.
Commands
commands:
shop: # /shop [shop], /shop search <text>
enabled: true
aliases: []
sell: # /sell, /sell hand [amount], /sell all [item]
enabled: true
aliases: []
worth: # /worth, /worth all
enabled: true
aliases: []
Each command can be turned off, for a server where another plugin already answers to its name, and given other names: aliases: [boutique] makes /boutique work like /shop, arguments included. An alias is made of letters, digits, _ and -. /xshop is always there. Commands are registered once, when the server starts: a change here takes a restart.
Buying and Clicks
buying:
# Ask "are you sure?" for a purchase of this much or more, in the product's currency. 0: never.
confirm-above: 0
# What no longer fits in the inventory by the time the purchase goes through goes to XCore's
# delivery. false: dropped at the player's feet instead, delivered only when they have left.
overflow-to-delivery: true
clicks:
left: quantity
right: sell
shift-left: buy-stack
shift-right: sell-all
The click actions are buy, buy-stack, sell, sell-all, quantity, quantity-sell and none: see Quick Clicks.
Selling and Wands
selling:
# A used tool or armour piece: refuse, prorata (the share of durability left) or full.
damaged-items: prorata
# Whether /sell all and sell wands also sell what the shulker boxes hold. The boxes stay.
shulker-contents: false
# How many lines the hover of a sale summary shows before "and N more", 1 to 40.
summary-lines: 10
wands:
material: BLAZE_ROD # what a wand is made of
cooldown: 1 # seconds between two uses by the same player
containers: # where a wand works; SHULKER_BOX stands for every colour
- CHEST
- TRAPPED_CHEST
- BARREL
- SHULKER_BOX
A wands.material that is not an item of this server falls back on the blaze rod, and a container this server does not know is left out of the list. A containers list missing from the file gives the four above. See Sell Wands.
Prices
# Price groups given by permission: xshop.modifier.<name>.
# buy is what the group pays (-10% is ten percent off), sell what it is paid
# (+10% is ten percent more). A player in several groups gets the best of each.
# A group only lowers buy prices and raises sell prices: a surcharge is ignored.
#
# modifiers:
# vip:
# buy: -5%
# sell: +10%
modifiers: {}
guarantees:
# The most all selling bonuses together (price group, booster, event, wand) can multiply
# a price by. It also limits how deep a sale can go.
max-sell-multiplier: 2.0
dynamic-pricing:
defaults: # what dynamic: true stands for
range: 30%
volume: 2000
recovery: 6h
slippage: 2%
max-sell-multiplier is 1 at least and 100 at most; a value under 1 is read as 2.0. slippage is how far a dynamic price may move, the wrong way for the player, between a click and the moment the trade is written: a purchase that would then cost more, or a sale that would pay less, by more than that is refused and the menu refreshed. The rest is on Prices.
Events and Rotation
events:
# Tell everyone when an event starts and ends.
announce: true
# Sales that come back by the clock. Events started by hand use /xshop event, or the dashboard.
# A sale only lowers buy prices and raises sell prices: a surcharge is ignored.
#
# scheduled:
# weekend:
# days: [SATURDAY, SUNDAY]
# from: "00:00"
# to: "23:59"
# buy: -20% # prices twenty percent off
# sell: +0%
# shops: [] # empty: every shop
scheduled: {}
# Rotating shops draw their offers from this number. Change it and the draws change; servers
# that should show the same offers must have the same one.
rotation:
seed: 0
See Sales by the Clock and A Rotating Shop.
Logs, Discord and Sounds
logs:
keep-days: 90 # days a transaction is kept; 0: forever
price-history-days: 30 # days of price curve kept for dynamic products
revisions-per-shop: 100 # earlier versions of each shop file kept
discord:
webhook: "" # the channel's webhook address; empty: nothing is sent
big-transaction: 0 # a trade of this amount or more is reported; 0: none is
events: true # report the start and the end of events
sounds: # as the game names them; empty: none
buy: "minecraft:entity.experience_orb.pickup"
sell: "minecraft:entity.experience_orb.pickup"
refused: "minecraft:block.note_block.bass"
Old transactions and price points are cleared every hour, and events and boosters a month after they ended. Discord messages go through XCore's sender, which queues them and waits when Discord asks it to: a busy shop delays them, never loses them. A big trade is reported with the player, the product, the quantity and the total.