# 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.                    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.olziedev.com/projects/playereconomy/commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
