# Commands & Permissions

### Player Commands

| Command                  | Description                                                               | Permissions                   |
| ------------------------ | ------------------------------------------------------------------------- | ----------------------------- |
| /trade \[item] \[type]   | Pay a user from a specified firm.                                         | playertrade.use               |
| /trade toggle            | Toggle if the shop should be shown in the menu and disables the hologram. | playertrade.toggle            |
| /trade hologramdirection | Changes the holograms direction for the shop.                             | playertrade.hologramdirection |

## Admin Commands

| Command       | Description                   | Permission               |
| ------------- | ----------------------------- | ------------------------ |
| /trade reload | Reloads all the config files. | playertrade.admin.reload |

## Rest API Commands

| Command                             | Description               | Permission                     |
| ----------------------------------- | ------------------------- | ------------------------------ |
| /trade apitokens                    | Shows the help menu.      | playertrade.apitokens          |
| /trade apitokens delete \[player]   | Delete your API token.    | playertrade.apitokens.delete   |
| /trade apitokens generate \[player] | Generate a new API token. | playertrade.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                                            |
| --------------------------- | ------------------------------------------------------ |
| playertrade.admin.update    | When a player joins they receive update notifications. |
| playertrade.admin.apitokens | Remove/Generate other players' API tokens.             |


---

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