Economy System
Multi-Currency
Define as many currencies as you need in config.yml. Each currency has its own symbol, decimal precision, starting balance, and max balance.
One currency can be designated as the Vault provider (vault: true). This is the currency that all Vault-compatible plugins (shops, bounties, etc.) interact with.
Economy Commands
| Command | Description | Permission |
|---|---|---|
/eco | View all your balances | — |
/eco balance [player] [currency] | View balance | xcore.economy.balance.others for others |
/eco pay <player> <amount> [currency] | Send money | — |
/eco exchange <from> <to> <amount> | Exchange currencies | — |
/eco history [player] [currency] [page] | Transaction history | — |
/eco top [currency] | Top balances | — |
/eco set <player> <amount> [currency] | Set balance | xcore.economy.admin |
/eco add <player> <amount> [currency] | Add balance | xcore.economy.admin |
/eco remove <player> <amount> [currency] | Remove balance | xcore.economy.admin |
/eco reset <player> [currency|all] | Reset to the starting balance | xcore.economy.admin |
/eco resetall [currency|all] confirm | Reset every player, online and offline | xcore.economy.admin |
/eco reload | Reload economy config | xcore.economy.admin |
Aliases: /economy, /money. The command was /coins before 1.0.7.
Currency Exchange
Players can exchange between currencies using /eco exchange <from> <to> <amount>.
Exchange rates are configured per pair:
exchange:
enabled: true
rates:
coins-to-gems: 100 # 100 coins = 1 gem
gems-to-coins: 80 # 1 gem = 80 coins
The rate format is <from>-to-<to>: <amount> where amount is how many of the source currency equals 1 of the target.