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