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