How it works
#Players earn XP by creating and delivering orders. As they level up they pay less tax, can hold more active orders and can ask for more items per order. Everything is set in plugins/SimpleOrder/levels.yml. After a change run /simpleorderadmin reload.
Set enabled: false to turn the whole system off: the level button disappears from /order and no XP is processed.
| Key | Default | Description |
|---|---|---|
enabled | true | Master switch for order levels. |
daily-cap | -1 | Most XP a player can earn per day. -1 = unlimited. The counter resets 24 hours after it started (the player's first XP gain, then the first gain after each reset). |
The button's place is set in menus/main-menu.yml under items.level. Player levels and XP are stored in plugins/SimpleOrder/levels-players.yml on each server (not in the shared database). There is no command to change them: to reset a player, stop the server, delete that player's block in the file and start again.
XP sources (xp)
#Set a source to 0 to turn it off.
| Key | Default | Description |
|---|---|---|
on-create | 5.0 | Creating an order (flat). |
on-create-per-1000 | 1.0 | Extra XP per 1000 money spent creating an order. |
on-deliver-per-item | 0.25 | Per item delivered to someone else's order. |
on-complete | 10.0 | When your own order is completely filled. |
on-sell-per-1000 | 0.5 | Per 1000 money earned with "sell all". |
Abuse protection (anti-abuse)
#These checks stop two friends (or one player with an alt) from levelling each other up without real trading.
| Key | Default | Description |
|---|---|---|
enabled | true | Master switch for all checks below. |
creation-xp-mode | ON_COMPLETE | ON_COMPLETE: creation XP is paid only when the order is actually filled. IMMEDIATE: paid when the order is opened. |
partner-limit.enabled | true | Devalue repeated trades with the same player. |
partner-limit.cooldown-seconds | 60 | Minimum time between two XP-earning trades with the same player. Trades inside it still work but give no XP. |
partner-limit.full-reward-count | 3 | How many trades with one partner give full XP. |
partner-limit.decay | 0.5 | Multiplier for every trade after that (50%, 25%, 12.5% ...). 1.0 = no decay. |
partner-limit.daily-xp-cap | 100 | Most XP from one partner in 24 hours. -1 = unlimited. |
partner-limit.window-hours | 24 | How long trade history is remembered. |
block-same-ip | true | No XP when buyer and deliverer share an IP address. Delivery still works. Checked only while both players are online; an offline buyer's address is unknown, so the check passes. |
block-self-delivery | true | Never give XP for delivering to your own order. |
min-order-value | 100 | Orders with a total below this give no XP. 0 = off. |
min-order-amount | 16 | Orders for fewer items than this give no XP. 0 = off. |
log-suspicious | true | Log blocked XP attempts to the console. |
Levels (levels)
#Add or remove as many levels as you like. A level you delete does not come back on update.
| Field | Meaning |
|---|---|
xp-required | Total XP needed to reach the level. |
tax-discount | Percentage discount off tax (0-100), applied after the base rate, the rank rate and the rank discount. |
extra-orders | Added to the active order limit (not when the limit is unlimited). |
extra-items | Added to orders.max-amount when that is set. In 3.2 the amount prompt checks orders.max-amount without this bonus, so while max-amount is set players cannot type more than it, whatever their level. With the shipped max-amount: -1 there is no limit anyway. |
reward-commands | Console commands run on level-up (%player%, %level%). If one XP gain skips levels, only the commands of the level reached run. |
broadcast | Announce the level-up to the server. |
Shipped levels:
| Level | XP required | Tax discount | Extra orders | Extra items | Broadcast |
|---|---|---|---|---|---|
| 1 | 0 | 0 | 0 | 0 | no |
| 2 | 100 | 5 | 2 | 64 | no |
| 3 | 300 | 10 | 5 | 192 | no |
| 4 | 750 | 15 | 10 | 384 | yes |
| 5 | 1500 | 20 | 15 | 640 | yes |
| 6 | 3000 | 25 | 25 | 1280 | yes |
| 7 | 6000 | 30 | 40 | 2560 | yes |
| 8 | 12000 | 40 | 60 | 5120 | yes |
Example: run a console command when a player reaches level 4.
levels:
4:
xp-required: 750
tax-discount: 15
extra-orders: 10
extra-items: 384
reward-commands:
- "say %player% reached order level %level%!"
broadcast: true
Any console command works here, for example a reward from your crate or economy plugin.
Appearance
#| Key | Default | Description |
|---|---|---|
progress-bar.length | 20 | Length of the level progress bar. |
progress-bar.filled-char | "|" | Filled character. |
progress-bar.empty-char | "|" | Empty character. |
progress-bar.filled-color | "&a" | Filled colour. |
progress-bar.empty-color | "&7" | Empty colour. |
level-up-title.enabled | true | Show a title on level-up (text in lang/, sound in config.yml sounds.events.level-up). |
level-up-title.fade-in | 10 | Fade-in ticks. |
level-up-title.stay | 40 | Stay ticks. |
level-up-title.fade-out | 10 | Fade-out ticks. |
Found a mistake or something missing? Open a ticket on Discord.
Report an issue