# Commands and Permissions

## Commands

| **/codex**                                                                                                               | Opens the main menu. Doesn't need permissions.                                                                                                                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **/codex help**                                                                                                          | Shows all commands.                                                                                                                                                                                                                                                                                                                                                                                    |
| **/codex unlock \<player> \<category> \<discovery> (optional, send message)\<true/false>**                               | <p>Unlocks a discovery for a player. (This command can <br>be used in any plugin you want. Add 'false' to the end of <br>the command to avoid message spamming when a player has already unlocked a discovery)</p>                                                                                                                                                                                     |
| <p><strong>/codex resetplayer \<player> (optional)\<category></strong></p><p><strong>(optional)\<discovery></strong></p> | <p>Resets player data. The player must be online. Examples:</p><p></p><p><strong>/codex resetplayer \<player></strong> (Resets all data for the player)</p><p><strong>/codex resetplayer \<player> monsters</strong> (Resets category monsters for the player)</p><p><strong>/codex resetplayer \<player> regions kryngel</strong> (Resets discovery 'kryngel' of category regions for the player)</p> |
| <p><strong>/codex resetplayer \* (optional)\<category></strong></p><p><strong>(optional)\<discovery></strong></p>        | Resets data for all players. This will also modify offline player files, and there is no need for players to be online.                                                                                                                                                                                                                                                                                |
| **/codex verify**                                                                                                        | Checks the plugin for errors.                                                                                                                                                                                                                                                                                                                                                                          |
| **/codex reload**                                                                                                        | Reloads the config.                                                                                                                                                                                                                                                                                                                                                                                    |
| **/codex open \<player> \<inventory>**                                                                                   | Opens an inventory for the player.                                                                                                                                                                                                                                                                                                                                                                     |

{% hint style="info" %}
There is just one permission to access commands: `codex.admin`
{% endhint %}


---

# 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://ajneb97.gitbook.io/codex/commands-and-permissions.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.
