# Commands & Permissions

{% hint style="info" %}
**Command not working?**

The command needs to be enabled in the **config.yml** for it to function properly. If the issue still persists please report it.
{% endhint %}

## Player Commands (pe.commands)

| Command                         | Description                                                | Permission    |
| ------------------------------- | ---------------------------------------------------------- | ------------- |
| /peconomy help                  | Displays this menu.                                        | N/A           |
| /balance \[player]              | Displays your balance.                                     | pe.balance    |
| /balancetop                     | Displays the server balance top.                           | pe.balancetop |
| /pay \<player> \<amount>        | Pay another play from your balance.                        | pe.pay        |
| /withdraw \<amount> \[quantity] | Withdraw your item into an item.                           | pe.withdraw   |
| /paytoggle \[player]            | Toggle the ability to receive payments from other players. | pe.paytoggle  |

## Admin Commands

| Command                            | Description                   | Permission      |
| ---------------------------------- | ----------------------------- | --------------- |
| /peconomy reload                   | Reloads all the config files. | pe.admin.reload |
| /peconomy set \<player> \<amount>  | Set a player's balance.       | pe.admin.set    |
| /peconomy take \<player> \<amount> | Take money from a player.     | pe.admin.take   |
| /peconomy give \<player> \<amount> | Give money to a player.       | pe.admin.give   |
| /peconomy reset \<player>          | Reset a player's balance.     | pe.admin.reset  |

## Rest API Commands

| Command                                | Description               | Permission            |
| -------------------------------------- | ------------------------- | --------------------- |
| /peconomy apitokens                    | Shows the help menu.      | pe.apitokens          |
| /peconomy apitokens delete \[player]   | Delete your API token.    | pe.apitokens.delete   |
| /peconomy apitokens generate \[player] | Generate a new API token. | pe.apitokens.generate |

{% hint style="info" %}
**Permissions not working?**

The <> in some permissions are placeholders, you will need to replace them with a valid value like requested.
{% endhint %}

## Player Permissions

| Permission        | Description                        |
| ----------------- | ---------------------------------- |
| pe.balance.others | Displays another player's balance. |

## Admin Permissions

| Permission         | Description                                            |
| ------------------ | ------------------------------------------------------ |
| pe.admin.update    | When a player joins they receive update notifications. |
| pe.admin.apitokens | Remove/Generate other players' API tokens.             |
| pe.admin.paytoggle | Toggle payments for another player.                    |
