TMDevelopmentTinulica & Maiky

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 exchangeshows 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 10 costs 1,000 money.
  • Each way can be turned off with 0. To keep tokens worth something, keep only buy-price on.
  • If sell-price is the same or higher than buy-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.

Last updated

Sign in

New here? Just enter your email: the account is created when you click the link. No password needed.

or

We send you a link that signs you in with one click. It works for new and existing accounts.

Sign in with a password instead

By continuing you accept the Terms & Conditions and the Privacy policy.

Staff: open “Sign in with a password instead” and type your username instead of the email. After the password we ask for your 2FA code.