# Terraria Server Console Commands (Full List) (/docs/terraria/console-commands)



The vanilla Terraria dedicated server has a built-in **console** for live administration — no mod required. On XGamingServer you type these into the **Console** tab of your server; they take effect immediately.

> These are **vanilla** TerrariaServer commands. If you run **tModLoader**, the same commands work; additional admin/chat commands come from mods like tShock.

Player Management [#player-management]

| Command         | Description                                         |
| --------------- | --------------------------------------------------- |
| `playing`       | List all connected players.                         |
| `kick <player>` | Disconnect a player from the server.                |
| `ban <player>`  | Kick **and** ban a player (added to `banlist.txt`). |
| `maxplayers`    | Show the maximum player slots.                      |

Messaging [#messaging]

| Command         | Description                                                               |
| --------------- | ------------------------------------------------------------------------- |
| `say <message>` | Broadcast a message to everyone. It appears as `<Server>` in yellow chat. |
| `motd`          | Show the current Message of the Day.                                      |

World & Time [#world--time]

| Command    | Description                                                                                    |
| ---------- | ---------------------------------------------------------------------------------------------- |
| `save`     | Save the world to disk immediately.                                                            |
| `settle`   | Settle all liquids (stops water/lava flowing) — handy after big terraforming or dupe cleanups. |
| `dawn`     | Set the time to dawn (4:30 AM).                                                                |
| `noon`     | Set the time to noon (12:00 PM).                                                               |
| `dusk`     | Set the time to dusk (7:30 PM).                                                                |
| `midnight` | Set the time to midnight (12:00 AM).                                                           |
| `time`     | Print the current in-game time.                                                                |
| `seed`     | Show the world's generation seed.                                                              |

Server & Security [#server--security]

| Command              | Description                               |
| -------------------- | ----------------------------------------- |
| `password`           | Show the current server password.         |
| `password <newpass>` | Set a new join password.                  |
| `version`            | Print the server version.                 |
| `port`               | Show the port the server is listening on. |
| `clear`              | Clear the console output.                 |
| `help`               | List all available console commands.      |

Shutting Down Safely [#shutting-down-safely]

| Command       | Description                                                          |
| ------------- | -------------------------------------------------------------------- |
| `exit`        | **Save the world and shut down** — always use this to stop cleanly.  |
| `exit-nosave` | Shut down **without** saving (discards changes since the last save). |

> ⚠️ Always stop with `exit` (or the panel's normal **Stop**, which saves) rather than force-killing the process. Ending the server mid-play without a save can roll back chest contents and terrain.

Tips [#tips]

* Run `save` before risky operations or scheduled restarts so nothing is lost.
* `settle` is the fix when a griefer or a dupe leaves water/lava cascading across the map.
* Banned players live in `banlist.txt` — remove a line there to unban.

Related Guides [#related-guides]

* [Server Configuration (serverconfig.txt)](/docs/terraria/server-config)
* [World & Difficulty Settings](/docs/terraria/difficulty-settings)
* [Set a Password](/docs/terraria/server-password)
