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 |
|---|---|---|
/coins | View all your balances | — |
/coins balance [player] [currency] | View balance | — |
/coins pay <player> <amount> [currency] | Send money | — |
/coins exchange <from> <to> <amount> | Exchange currencies | — |
/coins history [player] [currency] [page] | Transaction history | — |
/coins top [currency] | Top balances | — |
/coins set <player> <amount> [currency] | Set balance | xcore.economy.admin |
/coins add <player> <amount> [currency] | Add balance | xcore.economy.admin |
/coins remove <player> <amount> [currency] | Remove balance | xcore.economy.admin |
/coins reload | Reload economy config | xcore.economy.admin |
Currency Exchange
Players can exchange between currencies using /coins 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.