# Commands & Permissions

### Player Commands

| Command                              | Description                                                                | Permission                         |
| ------------------------------------ | -------------------------------------------------------------------------- | ---------------------------------- |
| /pt transactions \[page]             | View your transaction history.                                             | playertreasury.transactions.use    |
| /pt transactions \<player]> \[page]  | Shows transaction list for the specified player.                           | playertreasury.transactions.others |
| /pt owing \<player>                  | Allows you to view what tax others owe.                                    | playertreasury.owing.others        |
| /pt owing                            | Allows you to view what tax you owe.                                       | playertreasury.owing.use           |
| /pt tax \[player]                    | Allows you to view what tax you pay.                                       |                                    |
| /pt debt collect \<player> \<amount> | The specified amount should be collected from a player’s outstanding debt. | playertreasury.admin.debt.collect  |
| /pt debt remove \<player> \<amount>  | The specified amount should be removed from a player’s outstanding debt.   | playertreasury.debt.remove         |
| /pt debt record \<player> \[page]    | List all collections of debt for a player.                                 | playertreasury.debt.record         |

### Admin Commands

| Command                                      | Description                                                         | Permission                                |
| -------------------------------------------- | ------------------------------------------------------------------- | ----------------------------------------- |
| /pt tax exemption                            | Allows you to manage the tax exemption.                             | playertreasury.admin.exemption            |
| /pt tax exemption add \<user/business ID>    | Allows you to add businesses to the list of tax exempt entities.    | playertreasury.admin.tax.exemption.add    |
| /pt tax exemption remove \<user/business ID> | Allows you to remove businesses to the list of tax exempt entities. | playertreasury.admin.tax.exemption.remove |
| /pt tax exemption list                       | Lists all tax exempt entities.                                      | playertreasury.admin.tax.exemption.list   |
| /pt owingremove \<player> \<type> \<amount>  | Allows you to remove tax owing from others.                         | playertreasury.admin.owingremove          |
| /pt reload                                   | Reloads all the config files.                                       | playertreasury.admin.reload               |

## Rest API Commands

| Command                          | Description               | Permission                        |
| -------------------------------- | ------------------------- | --------------------------------- |
| /pt apitokens                    | Shows the help menu.      | playertreasury.apitokens          |
| /pt apitokens delete \[player]   | Delete your API token.    | playertreasury.apitokens.delete   |
| /pt apitokens generate \[player] | Generate a new API token. | playertreasury.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 %}

## Admin Permissions

| Permission                     | Description                                            |
| ------------------------------ | ------------------------------------------------------ |
| playertreasury.admin.update    | When a player joins they receive update notifications. |
| playertreasury.tax.others      | Allows the player to view other players tax.           |
| playertreasury.admin.apitokens | Remove/Generate other players' API tokens.             |
