> For the complete documentation index, see [llms.txt](https://wiki.code-solutions.dev/serverassistantai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.code-solutions.dev/serverassistantai/getting-started/commands-and-permissions.md).

# Commands & Permissions

ServerAssistantAI includes the following commands for managing and interacting with the AI assistant.

## Minecraft Commands:

<table data-full-width="false"><thead><tr><th width="231">Command</th><th width="197">Description</th><th width="225">Permission</th><th width="96">Default</th></tr></thead><tbody><tr><td>/serverassistantai ask</td><td>Privately ask the AI a question.</td><td>serverassistantai.use</td><td>Player</td></tr><tr><td>/serverassistantai chat</td><td>Start a continuous private conversation mode with the AI.</td><td>serverassistantai.chat</td><td>Player</td></tr><tr><td>/serverassistantai usage</td><td>See amount of questions asked and left for the day in Minecraft.</td><td>serverassistantai.usage<br>serverassistantai.usage.others</td><td>Player</td></tr><tr><td>/serverassistantai toggle</td><td>Toggle automatically answering player's questions in chat.</td><td>serverassistantai.toggle</td><td>Player</td></tr><tr><td>/serverassistantai reset</td><td>Resets a specific player's usage for the day.</td><td>serverassistantai.reset</td><td>OP</td></tr><tr><td>/serverassistantai reload</td><td>Reloads the plugin's configuration files, and document if changed.</td><td>serverassistantai.reload</td><td>OP</td></tr><tr><td>/serverassistantai debug</td><td>Generate debug information for troubleshooting.</td><td>serverassistantai.debug</td><td>OP</td></tr></tbody></table>

{% hint style="info" %}
**Aliases:** `/saai`, `/ai`, `/assistant`
{% endhint %}

{% hint style="success" %}
`serverassistantai.use` is also the permission used for allowing players to ask questions in the public in-game chat, which is given by default.
{% endhint %}

{% hint style="warning" %}
Daily usage limits reset at 12:00 AM UTC (midnight UTC) every day for all Minecraft and Discord users.
{% endhint %}

### Other Permissions:

<table><thead><tr><th width="254">Permission</th><th>Description</th></tr></thead><tbody><tr><td>serverassistantai.group.&#x3C;group></td><td>Assign a player to a specific group for daily question limits. Replace <code>&#x3C;group></code> with the group name from <code>config.yml</code>.</td></tr><tr><td>serverassistantai.updatecheck</td><td>Allows players to be notified about ServerAssistantAI updates.</td></tr><tr><td>serverassistantai.bypass</td><td>Bypass the daily player limits in-game.</td></tr><tr><td>serverassistantai.helpful-information</td><td>View in-game helpful messages within an AI response when <code>helpful_information</code> is enabled.</td></tr><tr><td>serverassistantai.question-detection</td><td>Allows question detection to work for the player's messages in public chat. (Enabled by Default)</td></tr><tr><td>serverassistantai.mention-bot</td><td>Allows the player to mention the bot's name in chat to force a response. (Enabled by Default)</td></tr><tr><td>serverassistantai.advanced-question-detection.debug</td><td>When <code>question_detection</code> is set to <code>advanced</code> and <code>debug_in_game</code> is enabled, this permission allows players to view the probability of each message in-game being a question.</td></tr></tbody></table>

### PlaceholderAPI Placeholders:

When [PlaceholderAPI](https://wiki.placeholderapi.com/) is installed, ServerAssistantAI provides the following built-in placeholders:

<table><thead><tr><th width="324.8125">Placeholder</th><th>Description</th></tr></thead><tbody><tr><td>%serverassistantai_chat_provider%</td><td>The current chat model provider.</td></tr><tr><td>%serverassistantai_embedding_provider%</td><td>The current embedding model provider.</td></tr><tr><td>%serverassistantai_chat_model%</td><td>The current chat model name.</td></tr><tr><td>%serverassistantai_embedding_model%</td><td>The current embedding model name.</td></tr><tr><td>%serverassistantai_limit%</td><td>The player's daily question limit.</td></tr><tr><td>%serverassistantai_usage%</td><td>The number of questions the player has asked today.</td></tr><tr><td>%serverassistantai_usage_left%</td><td>The number of questions remaining for the player today.</td></tr><tr><td>%serverassistantai_global_limit%</td><td>The server's global daily question limit.</td></tr><tr><td>%serverassistantai_global_usage%</td><td>The total questions asked server-wide today.</td></tr><tr><td>%serverassistantai_global_usage_left%</td><td>The remaining global questions for today.</td></tr></tbody></table>

## Discord Commands:

<table><thead><tr><th width="176">Command</th><th>Description</th></tr></thead><tbody><tr><td>/ai usage</td><td>See amount of questions asked and left for the day on Discord.</td></tr><tr><td>/ai toggle</td><td>Toggle automatically answering user's questions on Discord.</td></tr><tr><td>/ai reset</td><td>Resets a specific user's usage for the day on Discord.</td></tr></tbody></table>

## Discord Apps:

<table><thead><tr><th width="118">App</th><th width="285">Description</th><th>Permissions</th></tr></thead><tbody><tr><td>Ask AI</td><td>Right-click any message, select 'Apps' > 'Ask AI' for an AI response, even if it's not your own message.</td><td>Default: Server owners only. To grant access: Server Settings > Integrations > Bot > Select roles for "Ask AI" app</td></tr></tbody></table>

{% hint style="warning" %}
Make sure to configure these permissions according to your server's roles and access levels using a permission plugin like [LuckPerms](https://www.spigotmc.org/resources/luckperms.28140/), even though the player permissions are already given by default.
{% endhint %}
