# Currencies

> **Info:**
Every currency is its own file in the currencies folder, named after its id. Balances are kept in the database.

## Add a Currency

New Currency in the currency list asks for an id. The id is 1 to 24 lowercase letters, numbers or `_`. It shows in placeholders and is the currency's first command, so pick a readable one, such as `tokens`. The id can be changed later with a rename, which moves every balance and log entry to the new id. The new currency starts with a sunflower icon, a starting balance of 0 and no maximum.

## Default Currencies

The first start creates two currencies.

| Currency | Command | Format | Notes |
| -------- | ------- | ------ | ----- |
| Money | `/money` | `$1,250.00` | Starts at 100, the [Vault](../../features/vault.md) currency. |
| Gems | `/gems` | `1,250 Gems` | Exchanges for 100 money each. |

## Cloning a Currency

Clone Currency in a currency's editor, or `/pcur clone <currency> <new-id>`, copies the currency under a new id. The new id follows the same rules as a new currency and can't be in use, a pending rename target or an old id of another currency.

The clone gets a copy of the file with "Copy" added to the display name, its command set to the new id, and no command aliases or old ids, so it never clashes with the original. Every balance is copied. Transaction history, banknotes, banks and daily pay totals are not copied. The clone starts disabled, so it can be set up before players see it.

## Disabling a Currency

Enabled on a currency's bottom bar, or `/pcur disable <currency>` and `/pcur enable <currency>`, turns a currency off or on. A disabled currency:

* frees its commands, and leaves the wallet, tab completion, the history filters and the leaderboard holograms;
* can't be paid, exchanged to or from, withdrawn as banknotes or banked;
* refuses deposits and withdrawals from Vault, VaultUnlocked, Treasury, ServiceIO, the API, NPC and hologram actions;
* pays no bank interest.

Balances and history are kept and come back when the currency is enabled again. Placeholders still show the stored balance, and staff can still use `/pcur give`, `take`, `set` and `reset` on it. The [Vault](../../features/vault.md) currency can't be disabled: pick another Vault currency first.

## Deleting a Currency

Deleting a currency removes its file, every other currency's exchange rate into it, and its balances in the database. Its transaction log lines stay.

## Navigation

| Features | Description |
| --- | --- |
| [Display Name](edit-currency.md#display-name) | The name players see. |
| [Icon](edit-currency.md#icon) | The item shown in menus. |
| [Symbol](edit-currency.md#symbol) | The symbol used in the format. |
| [Format](edit-currency.md#format) | Format, decimals, separator and short amounts. |
| [Balances](edit-currency.md#balances) | Starting and maximum balance. |
| [Exchange Rates](../exchange.md) | What it can be exchanged for. |
| [Payments](../payments.md) | Sending the currency, fees, limits and cooldown. |
| [Banknotes](../banknotes.md) | Notes players withdraw. |
| [Bank](../bank.md) | A bank with levels and interest. |
| [Summon Leaderboard](edit-currency.md#summon-leaderboard) | Summons a leaderboard hologram where you stand. |
| [Commands and Access](edit-currency.md#commands-and-access) | Command, aliases, subcommand names, permission and servers. |
| [Currency Type](edit-currency.md#currency-type) | Stored, item or experience balances. |
| [Enabled](edit-currency.md#enabled) | Turn the currency on or off. |
| [Clone Currency](edit-currency.md#clone-currency) | Copy the currency and its balances. |
| [Delete Currency](edit-currency.md#delete-currency) | Delete the currency. |

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/main-features/currencies