# Let a moderator run a few commands

Write a command with blanks once. A moderator fills in the blanks and presses Run, without the console.

## Set up a command and run it

1. As an owner or administrator, open the server and choose its **Commands** tab.
2. Choose **New command**.
3. Enter a **Name**, and if you like **What it does**. Moderators see both.
4. In **Command**, type the command and put each blank between curly brackets, for example kick {player} {reason}. Each blank appears under **Blanks**. Give it a **Label** and choose what it **Takes**: **Text** or **Digits only**, with a **Shortest** and a **Longest**.
5. Check the **Example**, make sure **Moderators can run it** is on, and choose **Save**.
6. A moderator opens the same **Commands** tab. It is one list for everyone: they choose a command, fill in the boxes and choose **Run**.
7. The result shows under the command, for example Ran the command on the server's name, with what the server replied. A long reply is cut and says Shortened.
8. In Discord, a linked member with permission can type /run, pick an enabled command and fill in the boxes. The reply comes back privately. Connect your Discord server first.

## What to expect

- Moderators never see the console or the command itself, only the boxes you made.
- Owners, administrators, operators and moderators on that server can run a command. A viewer cannot.
- A moderator can type letters, numbers, spaces and . , _ - : @ # + ! ? in a box. Anything else is refused, and nothing is sent.
- To stop moderators using a command, turn off the switch beside it. Choose **Edit** to change it or **Remove** to delete it.
- Only an owner or administrator sees **New command**, the switch, **Edit** and **Remove**.

## If something goes wrong

- The server is not running: start it, then run the command again.
- Could not reach the server: the host is offline. Try again when it is online.
- An admin changed this command: check the boxes and run it again.
- You can't run commands on this server: ask an owner or administrator.
- Not confirmed: check in the game before trying again.

- [Understand workspace roles](https://rustsc.com/support/guides/workspace-roles/index.html.md)

- [Groups and permissions](https://rustsc.com/support/guides/player-permissions/index.html.md)

HTML version: https://rustsc.com/support/guides/mod-commands/
