Black Friday Bundles up to 67% off Everything else is 30% off. Ends December 3. See the bundles →

Plugins

Browse

Currency File

Currency File

View as Markdown ·

On this page

circle-info

Everything on this page can be set from the in-game editor. The files are only worth opening for a bulk change, or to copy currencies between servers. Run /pcur reload after saving them.

#Where the Files Are

Each currency is one file in the currencies folder, named after its id. A new file dropped in the folder is a new currency after a reload. Balances are not in these files, they are in the database.

#Example

YAML
enabled: true
display-name: '&bGems'
prefix: ''
symbol: Gems
format:
  pattern: '%amount% %symbol%'
  decimals: 0
  grouping: true
  compact-in-messages: false
starting-balance: 0.0
max-balance: -1.0
pay:
  enabled: true
  minimum: 1.0
  tax:
    percent: 5.0
    flat: 0.0
    paid-by: sender
    account: server
  limits:
    daily-send: -1.0
    daily-receive: -1.0
  cooldown-seconds: 0
permission-required: false
leaderboard: true
storage: network
commands:
  label: gems
  aliases: []
  subcommands:
    balance: balance
    pay: pay
    exchange: exchange
    history: history
    deposit: deposit
    withdraw: withdraw
    paytoggle: paytoggle
exchange-rates:
  tokens:
    pay: 5
    get: 1

#Keys

Key Description
enabled true or false, default true. A disabled currency keeps its balances but has no commands and takes no payments, see Disabling a Currency. The Vault currency always stays enabled.
display-name, symbol, format How the currency is named and written. decimals goes from 0 to 4. See Edit Currency.
prefix The prefix of every message about this currency. Empty uses currency-prefix from the translation file, which is the currency's name followed by ».
starting-balance, max-balance -1 for no maximum.
pay Whether players can pay, the minimum, the fee (paid-by is sender or receiver), the daily limits and the cooldown. See Payments.
permission-required, leaderboard See Edit Currency.
storage network (default), local or temporary. Network uses the database of config.yml. Local keeps the balances in this server's own SQLite file. Temporary does the same and wipes them at every start or reload. Changing it does not move balances. See Edit Currency.
commands The command and its aliases without slashes, and subcommands with the name of each subcommand.
icon The item shown in menus.
exchange-rates One rate per currency id it can be exchanged into: pay of this currency gives get of that one. See Exchange.
banknotes See Banknotes. Experience currencies use it for their bottles.
restrictions The worlds and servers lists. See Worlds and Servers.
discord The threshold of the Discord webhook.
type, item type is VIRTUAL, ITEM or EXPERIENCE. item.deposit-click is off (default), right-click or shift-right-click, item.stack is the item, each worth 1. See Item Currencies.
experience unit is levels or points. See Experience Currencies.
bank enabled, minimum-deposit, leaderboard-includes-bank, interest.interval-minutes, withdraw.tax-percent and withdraw.daily-limit, and levels numbered from 1, each with capacity, interest-percent, max-interest and upgrade-cost. -1 is unlimited. See Bank.
names singular and plural, used by %name% in the format for exactly 1 and for any other amount. Empty uses the display name.
pay.confirm-above Payments above this amount must be confirmed. -1 never asks. See Payments.
exchange daily-limits, with one limit per currency id it can be exchanged into. See Exchange.

Anything left out of the file takes its default, and the plugin writes every key back the next time the currency is saved.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping