# Commands & Permissions

### Player Commands

<table><thead><tr><th>Command</th><th width="303.3333333333333">Description</th><th>Permission</th></tr></thead><tbody><tr><td>/elections</td><td>Open the elections menu.</td><td>playerelections.manager</td></tr><tr><td>/elections exportall &#x3C;election id></td><td>Export all data for a specific election to a file.</td><td>playerelections.exportall</td></tr><tr><td>/elections export &#x3C;election id></td><td>Export data to hastebin.</td><td>playerelections.export</td></tr><tr><td>/elections ballot &#x3C;election id> [player]</td><td>Open the polling booth to cast a vote.</td><td>playerelections.ballot</td></tr><tr><td>/elections votes &#x3C;election id> [player]</td><td>View the votes for a specific election.</td><td>playerelections.votes</td></tr></tbody></table>

## Admin Commands

| Command           | Description                   | Permission                   |
| ----------------- | ----------------------------- | ---------------------------- |
| /elections reload | Reloads all the config files. | playerelections.admin.reload |

## Rest API Commands

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