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

# Server Setup

> Register and manage Minecraft servers connected to your Discord.

# Server Setup

> Register and manage Minecraft servers connected to your Discord.

## How it works

raze can monitor and interact with one or more Minecraft servers. Register a server once with its address, optionally store RCON credentials for moderation commands, then set it as default so all other commands work without specifying a name.

## Register a server

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;mc setup (name) (address)
  ```

  ```bash Example theme={null} theme={null}
  ;mc setup survival play.myserver.net
    ;mc setup creative creative.myserver.net:25566
  ```
</CodeGroup>

`name` is a short label used to reference this server in other commands. `address` can include a custom port.

## Manage servers

<CodeGroup>
  ```bash Edit address theme={null} theme={null}
  ;mc edit (name) (new address)
  ```

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

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

## Set default server

```bash theme={null} theme={null}
;mc default (name)
```

Once a default is set, all `mc` commands work without specifying a server name. If you only have one server, set it as default.

## RCON credentials

RCON lets raze run commands directly on your Minecraft server. Required for moderation commands (`mc kick`, `mc ban`, `mc cmd`, etc.).

<CodeGroup>
  ```bash Syntax theme={null} theme={null}
  ;mc rcon (name) (rcon-address) (password)
  ```

  ```bash Example theme={null} theme={null}
  ;mc rcon survival play.myserver.net:25575 mypassword
  ```
</CodeGroup>

<Warning>
  RCON credentials are stored encrypted. Never share your RCON password — it gives full console access to your server.
</Warning>

<ParamField path="rcon-address" type="host:port">
  The RCON host and port. Default RCON port is `25575`.

  <Expandable title="example">
    <ResponseField name="play.myserver.net:25575">Standard RCON port.</ResponseField>
    <ResponseField name="play.myserver.net:25580">Custom port configured in server.properties.</ResponseField>
  </Expandable>
</ParamField>
