Exchange
(4.1.0+) Players change money (Vault) into tokens and back. Needs Vault and an economy plugin (EssentialsX, CMI...). Off by default.
exchange:
enabled: true
# Money paid for 1 token. 0 = buying is off
buy-price: 100
# Money received for 1 token, lower than buy-price. 0 = selling is off
sell-price: 0
min-amount: 1
| Command | |
|---|---|
/tokens exchange | shows the prices (clickable) |
/tokens exchange buy <amount> | pays money, gets tokens |
/tokens exchange sell <amount|all> | gives tokens, gets money |
- Example:
buy-price: 100→/tokens exchange buy 10costs 1,000 money. - Each way can be turned off with
0. To keep tokens worth something, keep onlybuy-priceon. - If
sell-priceis the same or higher thanbuy-price, players could make endless money: selling turns itself off and the console says so. - If the economy plugin refuses the money, the tokens are given back.
- Every exchange is in
/tokens history. - Permission:
flaretokens.command.exchange(everyone). Also/tokens convert.
Ultimo aggiornamento: