# Currency File

> **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

```yml
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](../main-features/currencies/README.md#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](../main-features/currencies/edit-currency.md). |
| **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](../main-features/payments.md). |
| **permission-required**, **leaderboard** | See [Edit Currency](../main-features/currencies/edit-currency.md). |
| **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](../main-features/currencies/edit-currency.md#storage). |
| **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](../main-features/exchange.md). |
| **banknotes** | See [Banknotes](../main-features/banknotes.md). Experience currencies use it for their bottles. |
| **restrictions** | The `worlds` and `servers` lists. See [Worlds and Servers](../features/worlds-and-servers.md). |
| **discord** | The `threshold` of the [Discord webhook](../features/discord-webhook.md). |
| **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](../features/item-currencies.md). |
| **experience** | `unit` is `levels` or `points`. See [Experience Currencies](../features/experience-currencies.md). |
| **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](../main-features/bank.md). |
| **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](../main-features/payments.md#confirm-payments-above). |
| **exchange** | `daily-limits`, with one limit per currency id it can be exchanged into. See [Exchange](../main-features/exchange.md). |

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

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/configurations/currency-file