> ## Documentation Index
> Fetch the complete documentation index at: https://docs.razebot.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Moderation

> Kick, ban, and manage players directly from Discord using RCON.

# Moderation

> Kick, ban, and manage players directly from Discord using RCON.

<Warning>
  All moderation commands require [RCON credentials](/integrations/minecraft-setup#rcon-credentials) to be configured for your server. Requires **Administrator** in Discord.
</Warning>

## Raw command

Run any server console command directly through RCON.

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;mc cmd (command)
  ```

  ```bash Example theme={null} theme={null}
  ;mc cmd time set day
    ;mc cmd give Notch diamond 64
  ```
</CodeGroup>

## Kick

```bash theme={null} theme={null}
;mc kick (username) [reason]
```

Kicks a player from the server. The reason is shown to the player on disconnect.

## Ban & unban

<CodeGroup>
  ```bash Ban theme={null} theme={null}
  ;mc ban (username) [reason]
  ```

  ```bash Unban theme={null} theme={null}
  ;mc unban (username)
  ```

  ```bash Example theme={null} theme={null}
  ;mc ban Griefer destroying spawn
    ;mc unban Griefer
  ```
</CodeGroup>

## Whitelist

Manage the server whitelist from Discord.

<CodeGroup>
  ```bash Add theme={null} theme={null}
  ;mc whitelist add (username)
  ```

  ```bash Remove theme={null} theme={null}
  ;mc whitelist remove (username)
  ```

  ```bash List theme={null} theme={null}
  ;mc whitelist list
  ```
</CodeGroup>
