Advertisement

Any server

RCON Command Reference

Each game speaks its own console language, and no two match. This covers the same handful of jobs — see who is online, warn them, save, stop — in each game's terms, with the commands you cannot take back clearly flagged.

Connection

RCON, TCP 25575

Commands are sent without the leading slash.

Players

  • list

    Who is online, and the player cap.

  • kick <player> [reason]

    Disconnect someone. They can rejoin immediately.

  • ban <player> [reason]

    Ban by name. Survives a name change only if the server resolves it to a UUID.

  • ban-ip <address>No undo

    Ban an address. Careful behind shared connections.

  • pardon <player>

    Lift a ban.

  • op <player>No undo

    Grant operator. Level comes from op-permission-level.

  • deop <player>

    Remove operator.

  • whitelist add <player>

    Add to whitelist.json.

  • whitelist remove <player>

    Remove from whitelist.json.

  • whitelist reload

    Re-read whitelist.json after editing it by hand.

World

  • save-all

    Flush every loaded chunk to disk. Returns when finished.

  • save-offNo undo

    Stop autosaving — for taking a filesystem snapshot.

  • save-on

    Resume autosaving. Never leave a server with save-off.

  • time set day

    Also accepts night, noon, midnight or a tick number.

  • weather clear [duration]

    Also rain and thunder.

  • difficulty <peaceful|easy|normal|hard>

    Changes immediately, no restart.

  • gamerule <rule> <value>

    keepInventory, doDaylightCycle, randomTickSpeed and the rest.

  • seed

    The world seed.

Server

  • say <message>

    Broadcast to chat.

  • stopNo undo

    Save and shut down. The server does not come back on its own.

A game only appears here once we could state its commands with certainty. RCON never asks "are you sure?", so a short reference beats a long one with a wrong command in it.

Advertisement

How it works

RCON is a tiny protocol: connect, log in with a password, then send any text the server's own console would accept. The only real difference between games is vocabulary. The reference is organised by task, not alphabetically, because what people want to know is 'how do I ban someone in this game', not 'what does banid do'.

Advertisement

Common mistakes

Flagged commands are irreversible, and RCON gives no second chance: no confirmation, no preview, no undo history. A Don't Starve Together rollback or a world regeneration is final the moment it goes out. Also bear in mind that a number of these consoles use one plaintext password for authentication — keep the port behind a VPN or an SSH tunnel, and out of your port-forwarding rules entirely.

Rather not run the server yourself?

These tools are free and funded by the two hosting services we run. If you want a server that is already set up, here they are.

Advertisement