Terraria server commands let you manage players, save your world and control the time without restarting the server. Which commands you can use depends on the server software: the regular Terraria server (vanilla) and tModLoader take commands in the server console. TShock adds a full set of admin commands that also work in the in-game chat.
This guide lists the most important commands for all three and shows where to enter them in ZapX.
Open your game server in ZapX and switch to the Console tab. Type the command and press Enter. In the console, commands are entered without a leading /.
In the in-game chat, commands always start with /. Vanilla Terraria only has a few chat commands. Admin commands in the chat are only available with TShock.
Set your password, port or player limit permanently in the server configuration.
These commands work in the Console tab for both the regular Terraria server and tModLoader:
| Command | Effect |
|---|---|
help | Lists all console commands |
playing | Shows all connected players |
say <message> | Sends a message to all players |
kick <player> | Removes a player from the server |
ban <player> | Bans a player |
save | Saves the world |
time | Shows the current in-game time |
dawn, noon, dusk, midnight | Changes the in-game time |
settle | Settles all flowing water |
motd / motd <message> | Shows or changes the message of the day |
password / password <password> | Shows or changes the server password |
maxplayers | Shows the player limit |
port | Shows the server port |
version | Shows the Terraria version |
clear | Clears the console window |
exit | Saves the world and stops the server |
exit-nosave | Stops the server without saving |
To stop your server, we recommend the Stop button in ZapX instead of exit. The world is saved in both cases.
The regular server has no unban command. Banned players are listed in config/banlist.txt in the Files tab. Delete the player's name and IP address from the file and restart the server.
Every player can use these commands in the chat:
| Command | Effect |
|---|---|
/playing | Shows all connected players |
/roll | Rolls a number from 1 to 100 |
/p <message> | Sends a message to your team only |
/me <action> | Sends an emote, e.g. /me is building a house |
Vanilla Terraria has no commands for items, bosses or teleporting. For that, you need TShock.
With TShock you get user accounts, groups and permissions. If you haven't installed TShock yet, follow our guide Become a Server Admin (TShock) first. You need to be logged in with an account that has the right permissions (/login <username> <password>).
In the in-game chat, enter the commands with /. In the Console tab, leave out the /.
| Command | Effect |
|---|---|
/who | Shows all connected players |
/kick <player> [reason] | Removes a player from the server |
/ban add <player> [reason] [duration] | Bans a player, e.g. /ban add Steve griefing 1d |
/ban list | Lists all bans with their ticket number |
/ban del <ticket> | Lifts a ban |
/mute <player> [reason] | Mutes a player in the chat |
/tp <player> | Teleports you to a player |
/tphere <player> | Teleports a player to you |
/broadcast <message> | Sends a highlighted message to everyone |
| Command | Effect |
|---|---|
/item <item> [amount] | Gives you an item, e.g. /item "Copper Shortsword" |
/give <item> <player> [amount] | Gives an item to another player |
/spawnmob <mob> [amount] | Spawns monsters near you |
/spawnboss <boss> [amount] | Spawns a boss, e.g. /spawnboss "eye of cthulhu" |
/butcher | Kills all hostile monsters |
/heal [player] | Fully heals you or another player |
/godmode [player] | Makes you or another player invincible |
/buff <buff> [seconds] | Gives you a buff |
Item, mob and boss names with spaces must be in quotation marks. You can also use the ID instead of the name.
| Command | Effect |
|---|---|
/time <day, night, noon, midnight or hh:mm> | Changes the in-game time, e.g. /time noon |
/worldevent <event> | Starts an event, e.g. /worldevent bloodmoon |
/setspawn | Sets the world spawn point to your position |
/save | Saves the world |
/reload | Reloads the TShock configuration and permissions |
/off [reason] | Saves the world and shuts down the server |
| Command | Effect |
|---|---|
/user add <username> <password> <group> | Creates an account in a group |
/user group <username> <group> | Moves an account to another group |
/group addperm <group> <permission> | Gives a group an extra permission |
/help [page] | Lists all commands you are allowed to use |
TShock includes the groups newadmin, admin, trustedadmin and owner. Each group has more permissions than the previous one.
Vanilla Terraria and tModLoader give you the basics in the console: kick, ban, save and change the time. If you want admin commands in the chat, items or bosses on demand and fine-grained permissions, install TShock on your Terraria server.
If you have any questions or need help, our support team is here for you every day! 🙂