Skip to main content

Economy

Module economy. Settings files: economy.toml, economy.json.

Commands​

CommandWhat it doesPermissionDefault
/balance, /bal, /moneyYour balance in every currencybrita.economy.balanceeveryone
/balance <player>Another player's balance, also offlinebrita.economy.balance.otherseveryone
/pay <player> <amount> [currency]Pay another player, also offlinebrita.economy.payeveryone
/baltop [currency] [page]The richest players and the server totalbrita.economy.baltopeveryone
/eco give|take|set <player> <amount> [currency]Change a balance; works from the consolebrita.economy.adminoperators
/eco reset <player> [currency]Set a balance back to the start amountbrita.economy.adminoperators
Go below 0, down to the currency's minbrita.economy.loannobody
Use priced commands for freebrita.economy.freenobody

Every player who joins gets an account. Balances are kept in britaessentials-economy.json in the world folder, saved a few seconds after a change and when the server stops.

economy.toml​

SettingWhat it doesDefault
enabledSwitches the money commands and command prices on or offtrue
logWrites every payment, /eco change, command price, sale and purchase to logs/britaessentials-economy.logfalse
baltopPageSizePlayers on one page of /baltop (1 to 50)10

Currencies and prices​

economy.json holds the currencies and what commands cost; run /brita reload after changing it. The first currency is the main one: /pay, /baltop, /eco and prices use it unless another is named. A broken currency or price is reported in the server log and left out.

{"currencies": {
"money": {"name": "Dollar", "plural": "Dollars", "symbol": "$", "format": "{symbol}{amount}"},
"euro": {"name": "Euro", "plural": "Euro", "symbol": "€", "format": "{amount} {symbol}",
"thousands": ".", "decimal": ","},
"tokens": {"name": "Token", "plural": "Tokens", "format": "{amount} {name}", "decimals": 0, "payable": false}
},
"costs": {"spawn": 100, "back": {"amount": 5, "currency": "tokens"}}}
Currency optionWhat it doesDefault
name, pluralName for exactly 1, and for every other amountthe id
symbolUsed where format says {symbol}empty
formatHow an amount looks: {amount}, {symbol}, {name}{symbol}{amount}
decimalsDecimal places, 0 to 42
thousands, decimalSigns between thousands and before the decimals; German style "." and ",""," and "."
startBalance of a new player0
minLowest balance; below 0 only for players with brita.economy.loan0
maxHighest balance; payments that would pass it are refused10 trillion
payablePlayers may /pay it to each othertrue
  • Amounts are typed as 250, 12.50 or 12,50 (no thousands signs).
  • A price is taken only when the command succeeds. A teleport pays on arrival, so a cancelled one costs nothing.
  • Prices work for /spawn, /back, /warp, /home, /sethome, /tpa, /tpahere, /pwarp ("pwarp" per visit, "setpwarp" to create one) and your own commands.
  • A price with words, such as "warp mine": 25, is only for that warp; it replaces the general "warp" price.