# Commands

## Commands

The following list shows all available commands for the plugin.

**Command alias:** `/phoenixcurrencies`, `/phoenixcur`, `/pcur`, `/pcurrency`, `/pcurrencies`, `/currency`, `/currencies`

<> - Required \
\[] - Optional

Every currency has a command of its own, `/money` and `/gems` by default. `<currency>` below stands for that command.

**Player Commands**

| Command | Description |
| ------- | ----------- |
| `/<currency> balance` | Shows your balance. `/<currency>` on its own does the same. |
| `/<currency> balance <player>` | Shows anyone's balance, online or offline. Needs `phoenixcurrencies.command.balance.others`. |
| `/<currency> pay <player> <amount>` | Sends money to a player, online or offline. |
| `/<currency> exchange <currency> <amount>` | Exchanges for another currency. Without arguments, lists the rates. |
| `/<currency> history` | Opens your transaction log. |
| `/<currency> withdraw <amount>` | Withdraws a banknote, items for a [Physical item currency](../features/item-currencies.md), or experience for an [Experience currency](../features/experience-currencies.md). |
| `/<currency> deposit [amount]` | Physical item and Experience currencies only: puts your items or experience into the balance, all of it without an amount. |
| `/<currency> bottle <amount>` | Experience currencies only: bottles that amount of your balance into an [experience bottle](../features/experience-currencies.md#experience-bottles). |
| `/<currency> bank` | Opens the [bank](../main-features/bank.md) of the currency. |
| `/<currency> bank deposit [amount]` | Puts an amount in the bank, all of it without an amount. Also takes `half` and percentages such as `25%`. |
| `/<currency> bank withdraw <amount>` | Takes an amount out of the bank. Also takes `all`, `half` and percentages. |
| `/<currency> bank upgrade` | Upgrades the bank to the next level, paid from the bank balance. |
| `/<currency> paytoggle` | Stops or allows payments to you. |
| `/<currency> top [page]` | Opens the [leaderboard](../main-features/leaderboards.md) of the currency. The console, and a page number, get the list in chat instead. |
| `/pcur balance <currency> <player>` | Shows any player's balance. |
| `/wallet` | Opens the wallet with every currency. Alias `/balances`. |
| `/pay <player> <amount>` | Pays in the Vault currency. Without arguments, opens the pay menu. |
| `/bal [player]` | The Vault currency balance. Alias `/balance`. |
| `/paytoggle` | Stops or allows payments to you. Alias `/paytog`. |
| `/baltop [page]` | The top players of the Vault currency. Alias `/balancetop`. |

**Admin Commands**

| Command | Description |
| ------- | ----------- |
| `/pcur give <currency> <player> <amount> [-s]` | Gives a player some of the currency. |
| `/pcur take <currency> <player> <amount> [-s]` | Takes some of the currency from a player. |
| `/pcur set <currency> <player> <amount> [-s]` | Sets a player's balance. |
| `/pcur reset <currency> <player> [-s]` | Puts a player's balance back to the starting balance. |
| `/pcur editor` | Opens the in-game editor. |
| `/pcur clone <currency> <new-id>` | Copies a currency and every balance to a new id. The clone starts disabled. Needs `phoenixcurrencies.command.editor`. See [Cloning a Currency](../main-features/currencies/README.md#cloning-a-currency). |
| `/pcur enable <currency>` | Turns a disabled currency back on. Needs `phoenixcurrencies.command.editor`. |
| `/pcur disable <currency>` | Turns a currency off and keeps its balances. The Vault currency can't be disabled. Needs `phoenixcurrencies.command.editor`. See [Disabling a Currency](../main-features/currencies/README.md#disabling-a-currency). |
| `/pcur editlayout <menu>` | Opens a menu in the layout editor. Needs `phoenixcurrencies.command.editor`. See [Customize Menus](../configurations/customize-menus.md#editing-menus-in-game). |
| `/pcur reload` | Reloads config.yml, the currency files and the translations. |
| `/pcur log [player] [currency]` | Opens the staff [transaction log](../features/transaction-log.md). |
| `/pcur history <player> <currency>` | Opens a player's balance history. |
| `/pcur bank <player> <currency>` | Shows a player's bank, online or offline. Needs `phoenixcurrencies.command.bank`. See [Admin Commands](../main-features/bank.md#admin-commands). |
| `/pcur bank <player> <currency> give\|take\|set <amount> [-s]` | Adds to, takes from or sets a player's bank balance. |
| `/pcur bank <player> <currency> level <level>` | Sets a player's bank level. |
| `/pcur bank <player> <currency> history` | Opens a player's bank history. |
| `/eco give\|take\|set\|reset <player> [amount]` | The admin commands of the Vault currency. Alias `/economy`. |
| `/pcur giveall <currency> <amount> [online\|all] confirm` | Gives every online or every known player an amount. |
| `/pcur banknote <currency> <player> <amount>` | Gives an online player a new banknote, signed by Console. The money is created, not taken from anyone. |
| `/pcur rollback <player> [currency] <time\|#id>` | Previews undoing a player's transactions. See [Rollback, Export and Audit](../features/rollback-and-audit.md). |
| `/pcur rollback confirm` | Carries out the last previewed rollback. |
| `/pcur export <player\|all> [currency] [days]` | Writes transactions to a CSV file. |
| `/pcur audit [currency]` | Compares balances with the transaction log. |
| `/pcur database import sqlite [confirm]` | Copies the old SQLite data into the MySQL, MariaDB or PostgreSQL database. See [Moving from SQLite to MySQL](../configurations/main-configuration.md#moving-from-sqlite-to-mysql). |
| `/pcur purge <days> [currency] [confirm]` | Counts, then with `confirm` deletes, the balances of players inactive for that many days. See [Purging Accounts](../features/purging-accounts.md). |
| `/pcur wipe <currency> [keepbank] [confirm]` | Console only. Puts every player's balance of one currency back to its starting balance. See [Resetting Currencies](../features/resetting-currencies.md). |

## Default Commands

`/pay`, `/bal`, `/eco`, `/paytoggle` and `/baltop` work out of the box for the [Vault currency](../features/vault.md). Each can be turned off in **Editor > Settings > Commands**. A name another plugin already owns, such as Essentials' `/pay`, is left to that plugin and the console says so. A currency's own command or alias with the same name wins over the default.

## Currency Commands

Each currency's command, aliases and subcommand names are set on the currency, see [Commands](../main-features/currencies/edit-currency.md#command). A currency with an empty command has none. If another plugin already owns a name, that plugin keeps it, the console warns, and the currency's command stays reachable as `/phoenixcurrencies:<name>`.

The subcommands in this list can each be renamed per currency, see [Subcommands](../main-features/currencies/edit-currency.md#subcommands).

## Amounts

Amounts accept `1,000`, decimals up to the currency's own, and the short forms `k`, `M`, `B`, `T` and `Q`, so `2.5k` is 2,500. Anything past the currency's decimals is dropped. A comma is only read as a thousands separator, so `1,5` is refused instead of guessed, and so is scientific notation such as `1e3`.

## Silent Changes

`-s` on an admin change, a bank change included, does not tell the player about it, and leaves it out of the summary they get on their next join. Without it, an online player is told what changed.

## Offline Players

Every command that takes a player works on anyone who has joined the server before, by name. A player who never joined is refused.

## Velocity Proxy

`/pcurproxy status` and `/pcurproxy reload` run on the proxy with the [Velocity companion](../features/velocity-proxy.md#commands).

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