# Placeholders

Phoenix Currencies supports **PlaceholderAPI**. Below are the placeholders the plugin registers.

## PlaceholderAPI

`<currency>` is the currency's id, such as `money`. Balances work for offline players too: the first request shows the starting balance while the real one loads, and later ones show the loaded balance, kept for the [Offline Balance Cache](../features/offline-players.md#offline-balance-cache).

### Balances

| Placeholder | Description |
| ----------- | ----------- |
| `%phoenixcurrencies_<currency>%` | The player's balance, in the currency's format, such as `$1,250.00`. |
| `%phoenixcurrencies_<currency>_formatted%` | The same. |
| `%phoenixcurrencies_<currency>_compact%` | The balance in short form, such as `$1.25k`. |
| `%phoenixcurrencies_<currency>_raw%` | The balance as a plain number, such as `1250.00`. |
| `%phoenixcurrencies_<currency>_rank%` | The player's place on the leaderboard, `-` without one. |

### Bank

For a currency with a [bank](../main-features/bank.md). Other players' banks load in the background, so the first request shows an empty bank.

| Placeholder | Description |
| ----------- | ----------- |
| `%phoenixcurrencies_<currency>_bank%` | The player's bank balance, in the currency's format. |
| `%phoenixcurrencies_<currency>_bank_formatted%` | The same. |
| `%phoenixcurrencies_<currency>_bank_compact%` | The bank balance in short form. |
| `%phoenixcurrencies_<currency>_bank_raw%` | The bank balance as a plain number. |
| `%phoenixcurrencies_<currency>_bank_level%` | The bank level. |
| `%phoenixcurrencies_<currency>_bank_max_level%` | The highest level the bank can reach. |
| `%phoenixcurrencies_<currency>_bank_capacity%` | The most the bank can hold at its level, or `Unlimited`. |
| `%phoenixcurrencies_<currency>_bank_interest%` | The interest percent of the bank's level. |
| `%phoenixcurrencies_<currency>_bank_next_interest%` | The time until the next interest. |
| `%phoenixcurrencies_<currency>_bank_earned%` | The interest the bank has paid so far. |

### Currency

| Placeholder | Description |
| ----------- | ----------- |
| `%phoenixcurrencies_<currency>_name%` | The display name, with its colors. |
| `%phoenixcurrencies_<currency>_name_plain%` | The display name without colors. |
| `%phoenixcurrencies_<currency>_symbol%` | The symbol. |
| `%phoenixcurrencies_<currency>_supply%` | The money in circulation: every balance added up, in the currency's format. Worked out with the leaderboards. |
| `%phoenixcurrencies_<currency>_supply_compact%` | The same in short form. |
| `%phoenixcurrencies_<currency>_supply_raw%` | The same as a plain number. |

### Leaderboards

`<n>` is a place on the [leaderboard](../main-features/leaderboards.md), from 1.

| Placeholder | Description |
| ----------- | ----------- |
| `%phoenixcurrencies_<currency>_top_<n>_name%` | The name of the player in that place. `-` when nobody holds it. |
| `%phoenixcurrencies_<currency>_top_<n>_value%` | Their balance, in the currency's format. Empty when nobody holds it. |
| `%phoenixcurrencies_<currency>_top_<n>_compact%` | Their balance in short form. |
| `%phoenixcurrencies_<currency>_top_<n>_raw%` | Their balance as a plain number. |

For example `%phoenixcurrencies_money_top_1_name%` or `%phoenixcurrencies_gems_compact%`. The `-` shown for a missing rank or player is in the translation file.

Source: https://www.phoenixplugins.com/docs/phoenix-currencies/plugin-information/placeholders