Currencies
Currencies are set up under currencies: in config.yml. Sellers pick one per listing. Each has its own name, color, prefix, suffix, abbreviation (1.5K), decimals, price limits and optional permission. default-currency is the one used when the seller does not choose.
Types#
- vault: your Vault economy.
- hypercredits: HyperCredits+ balances. Set
currency: CREDITSorCOUPONS. - pinnaprison: any PinnaPrison currency through its API. Set
currency-idto the currency id (tokens, gems, shards...). Run/ah admin currenciesto see every id on your server and a config line to paste. - placeholder: any plugin. The balance comes from a PlaceholderAPI placeholder and the console commands take and give the amount.
A currency from any plugin#
currencies:
points:
type: placeholder
enabled: true
name: "Points"
suffix: " Points"
decimals: 0
balance-placeholder: "%playerpoints_points%"
take-command: "points take {player} {amount}"
give-command: "points give {player} {amount}"
verify-take: trueWith verify-take: true the balance is read again after the take command, and the purchase only goes on if the money really left. Turn it off only if your placeholder is cached and does not update right away. verify-give does the same check after paying (off by default, because a cached placeholder would pay twice).
Same id as a built-in entry
A currency added by another plugin through the API cannot use the id of an enabled currency in your config.yml.