Files
#| File | Controls |
|---|---|
config.yml | Behaviour: order rules, tax, features, sounds, custom items, text format, spam protection, storage, cross-server |
levels.yml | Order levels, see Order levels |
lang/*.yml | Every text, menu titles, button names and item lore templates |
menus/*.yml | Layout of the 14 menus: rows, slots, materials, sounds, filler, per-button toggles |
After any change run /simpleorderadmin reload. It reloads the config, the menus and the language files.
General and language
#| Key | Default | Description |
|---|---|---|
prefix | "" | Prefix shown before messages. Empty means no prefix. |
language | tr | Server default language: a file name in lang/ (en, tr, ...) or auto for the machine's language. |
per-player-language | true | true: each player sees the language chosen with /orderlang, or their client language if they did not choose one. false: everyone sees language. |
locale-map | {} | Optional map from a client locale to one of your language files, for example en_pt: pt_BR. |
Order rules (orders)
#| Key | Default | Description |
|---|---|---|
max-active-per-player | 10 | Active orders one player may have at once. -1 = unlimited. orders.unlimited always means unlimited. |
rank-limits | shipped examples orders.limit.vip: 25, orders.limit.mvp: 50 (they do nothing, see below) | Limit per permission: the key is the permission name and must contain no dots. The highest value a player holds wins; a negative value means unlimited. |
min-price-per-item | 0.01 | Lowest price per item. |
max-price-per-item | -1 | Highest price per item. -1 = no limit. |
min-amount | 1 | Lowest amount per order. |
max-amount | -1 | Highest amount per order. -1 = no limit. |
expiry-hours | 168 | How long an order stays open (168 = 7 days). |
expire-bypass-permission | orders.bypass.expire | Orders created by a player with this permission never expire. It is checked when the order is created. |
completed-retention-hours | 168 | How long a completed order with no items left is kept after its end time before the cleanup deletes it. A fully collected order is removed at once; an order that still holds items is never deleted by this. |
max-enchantments-per-order | 5 | Most enchantments on one enchanted-item order. -1 = unlimited. |
cleanup-interval-ticks | 6000 | How often expired orders are cleaned up (6000 ticks = 5 minutes). |
input-mode | SIGN | How amount and price are asked: SIGN (a temporary sign) or CHAT. |
blacklist | [] | Materials that cannot be ordered, for example BEDROCK. |
broadcast.enabled | false | Announce new orders to the whole server. |
broadcast.min-total | 0 | Only orders worth at least this total (before tax) are announced (0 = all). |
Example: announce only large orders.
orders:
broadcast:
enabled: true
min-total: 10000
Write your own keys without dots and give exactly those permission names:
orders:
rank-limits:
orders_limit_vip: 25
orders_limit_mvp: 50
/lp group vip permission set orders_limit_vip true
See Task recipes.
Tax (tax)
#Rates are percentages: 5.0 means 5%. Set enabled: false to remove every tax line from the menus.
| Key | Default | Description |
|---|---|---|
enabled | true | Master switch for tax. |
creation-percent | 5.0 | Tax added on top of the order total when an order is created. |
delivery-percent | 0.0 | Tax taken from the payout to the deliverer. |
sell-percent | 0.0 | Not applied in 3.2: the "sell all" payout is not taxed. The value only appears in the admin panel. |
rank-rates | shipped examples vip 4.0, mvp 3.0, elite 2.0, legend 0.0 (they do nothing, dotted keys) | Tax percentage per permission; the key must contain no dots. The lowest rate a player holds wins, and only when it is lower than the base rate. |
rank-discounts | shipped examples vip 20.0, mvp 40.0 (they do nothing, dotted keys) | Percentage discount off the base tax; the key must contain no dots. The highest discount wins; applied after rank-rates, so filling both multiplies them (5% base, rank rate 4%, 20% discount gives 3.2%). |
exempt-permission | orders.tax.exempt | Permission that removes tax entirely. |
destination | VOID | VOID: the tax disappears (recommended). ACCOUNT: it is paid to destination-account. |
destination-account | "" | Player account that receives the tax with ACCOUNT. |
min-amount | -1 | Lowest tax per action. -1 = no bound. Only applies when tax is charged at all. |
max-amount | -1 | Highest tax per action. -1 = no bound. |
The rate a player pays is the base rate, lowered to the rank rate if that is lower, then reduced by the rank discount, then by the order level's tax-discount; min-amount and max-amount bound the result. Because the shipped rank examples are inactive, the shipped tax is a flat 5% at creation before level discounts. Working example with a dot-free key:
tax:
rank-discounts:
orders_tax_discount_20: 20.0
Features (features)
#Turning a feature off also removes its buttons.
| Key | Default | Description |
|---|---|---|
potions | true | Potion orders, with the potion type menu. |
enchantments | true | Ordering items with chosen enchantments. |
enchanted-books | true | Enchanted book orders. |
sell-all | true | "Sell all" button on the collect screen. |
quick-fill | true | "Quick fill" button on the delivery screen. |
search | true | Search on the main menu. |
filter | true | Filter on the main menu. |
sort | true | Sort on the main menu. |
panel-toggles | all eight keys | Features the admin panel's "Features" button can switch on and off. |
Sounds (sounds)
#Sounds use vanilla keys in the form "key", "key:volume", "key:volume:pitch" or "none". Volume is 0.0 to 1.0, pitch 0.5 to 2.0. Sounds set on a button in menus/*.yml override these.
| Key | Default |
|---|---|
enabled | true |
events.error | block.note_block.bass:1.0:0.8 |
events.success | entity.experience_orb.pickup:1.0:1.0 |
events.order-created | entity.player.levelup:0.6:1.4 |
events.order-delivered | entity.experience_orb.pickup:1.0:1.2 |
events.order-cancelled | block.note_block.bass:1.0:0.6 |
events.order-completed | ui.toast.challenge_complete:1.0:1.0 |
events.page-turn | item.book.page_turn:1.0:1.0 |
events.menu-open | none |
events.menu-close | none (it also fires when moving between menus) |
events.level-up | ui.toast.challenge_complete:1.0:1.0 |
events.tax-paid | entity.villager.yes:0.7:1.0 |
events.no-money | entity.villager.no:1.0:1.0 |
Custom items (custom-items)
#| Key | Default | Description |
|---|---|---|
enabled | true | true: custom items are told apart from plain items and a plain order never accepts them (needs at least one provider below to be on). false: no check; any item of the right material is accepted, plugin items included. |
providers.itemsadder | true | Recognise ItemsAdder items (skipped when the plugin is not installed). |
providers.oraxen | true | Recognise Oraxen items. |
providers.nexo | true | Recognise Nexo items. |
providers.custom-model-data | true | Vanilla items that carry a custom model number count as custom items. Set false to accept resource-pack skins in plain orders. |
placement | TOP | No effect in 3.2 (the picker lists no custom items). |
whitelist | [] | No effect in 3.2. |
blacklist | [] | No effect in 3.2. |
match-mode | STRICT | No effect in 3.2: it only compares an order that carries a custom id, and none can be created. |
Item ids use the form provider:key, for example itemsadder:ruby, oraxen:mythic_sword, nexo:magic_wand or cmd:DIAMOND_SWORD:10001.
Text format (text)
#| Key | Default | Description |
|---|---|---|
currency.symbol | "$" | Currency symbol. Used by the lines the plugin builds itself (delivery and sale confirmation buttons); the shipped lore template and most chat messages write $ inside lang/*.yml. |
currency.after-amount | false | true writes 100$, false writes $100. |
minifont.buttons | true | Small caps for button names. |
minifont.titles | true | Small caps for menu titles. |
minifont.lore | true | Small caps for button lore. |
minifont.messages | false | Small caps for chat messages. |
minifont.map | letter table | Letter-to-small-caps table. Delete a line to leave that letter unchanged. |
progress-bar.length | 10 | Length of the progress bar in order lore (%bar%). |
progress-bar.filled-char | "■" | Filled character. |
progress-bar.empty-char | "■" | Empty character. |
progress-bar.filled-color | "1F267" | Filled colour. |
progress-bar.empty-color | "򇨣" | Empty colour. |
number-format.style | full | full (5.000 / 45.000.000) or compact (5K / 45M). |
number-format.thousands-separator | "." | Thousands separator for full. |
number-format.decimals | 0 | Decimal places. |
number-format.percent-format | "%%%s" | Percent format; %s is the number. |
Spam protection (protection)
#Values are milliseconds. 0 turns that check off.
| Key | Default | Description |
|---|---|---|
click-cooldown-ms | 200 | Every click in a menu (the delivery item area is excluded). |
menu-cooldown-ms | 250 | Opening a menu. |
command-cooldown-ms | 1000 | /order and the other commands. |
create-cooldown-ms | 3000 | Creating a new order. |
deliver-cooldown-ms | 500 | Delivering items to an order. |
input-cooldown-ms | 500 | Asking for sign or chat input. |
warn-player | true | Tell a blocked player they are going too fast. |
warn-cooldown-ms | 3000 | How often that warning may be shown. |
bypass-permission | orders.bypass.cooldown | Players with this permission skip every cooldown. |
Performance (performance)
#| Key | Default | Description |
|---|---|---|
save-delay-ticks | 40 | Changes are batched and written in the background after this delay (MEMORY and SQLITE). 0 writes on every change. |
chat-input-timeout-ticks | 1200 | How long chat input (input-mode: CHAT) waits (1200 = 60 seconds). |
Cross-server (network)
#A player can open an order on one server and have it filled on another. Every server must use the same MySQL or MariaDB database. If you enable this with MEMORY or SQLITE, the plugin prints an error on startup and keeps synchronisation off.
| Key | Default | Description |
|---|---|---|
enabled | false | Turn cross-server sync on. |
server-id | "" | This server's name on the network; must be different on every server. Empty: built from the server software name and the port, so set it yourself. |
mode | POLL | Sync method. Only POLL is supported. |
poll.interval-ticks | 40 | Ticks between scans (40 = 2 seconds). |
poll.batch-size | 200 | Most events handled in one scan. |
show-server-tag | true | Show which server an order came from. |
heartbeat-timeout | 30 | Seconds without a report before a server counts as offline. |
Storage (storage)
#| Key | Default | Description |
|---|---|---|
type | MEMORY | MEMORY (YAML file data.yml), SQLITE, MYSQL or MARIADB (recommended for production). |
sqlite.file-path | "orders.db" | SQLite file. |
sqlite.table-prefix | default in config.yml | Table prefix for SQLite. |
database.host | "localhost" | Database host. |
database.port | 3306 | Database port. |
database.database | "minecraft" | Database name. |
database.username | "root" | Database user. |
database.password | "" | Database password. |
database.table-prefix | default in config.yml | Table prefix for MySQL and MariaDB. |
database.pool.maximum-pool-size | 10 | HikariCP pool size. |
database.pool.minimum-idle | 2 | Idle connections kept open. |
database.pool.connection-timeout | 30000 | Connection timeout (ms). |
database.pool.idle-timeout | 600000 | Idle timeout (ms). |
database.pool.max-lifetime | 1800000 | Connection lifetime (ms). |
Example MariaDB setup:
storage:
type: MARIADB
database:
host: "127.0.0.1"
port: 3306
database: "minecraft"
username: "simpleorder"
password: "change-me"
Found a mistake or something missing? Open a ticket on Discord.
Report an issue