# Commands & Permissions

### Player Commands

| Command      | Description             | Permission       |
| ------------ | ----------------------- | ---------------- |
| /nightmarket | Opens the night market. | nightmarket.open |

### Admin Commands

| Command                                                  | Description                                       | Permission                   |
| -------------------------------------------------------- | ------------------------------------------------- | ---------------------------- |
| /nightmarket release \<days> \<time, for example: 14:00> | Releases the Night Market.                        | nightmarket.admin.release    |
| /nightmarket disable                                     | Disables the Night Market.                        | nightmarket.admin.disable    |
| /nightmarket add \<hand/all> \<rarity> \[price] \[stock] | Adds one or multiple items to the Night Market.   | nightmarket.admin.add        |
| /nightmarket clearitems                                  | Clears the items in the night market.             | nightmarket.admin.clearitems |
| /nightmarket reroll                                      | Reroll the night market for everyone.             | nightmarket.admin.reroll     |
| /nightmarket reroll \[player] \[amount]                  | Gives a certain amount of rerolls for that player | nightmarket.admin.reroll     |
| /nightmarket reload                                      | Reloads the plugin.                               | nightmarket.admin.reload     |

## Rest API Commands

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