Terraria Server Commands: Console & Chat
All commands for a Terraria dedicated server: console commands to save, kick and ban, chat commands for players, and how to set up TShock.
Quick answer: Type server commands into the server console (in the panel under Console) without a slash – e.g. save, kick name or exit. Vanilla Terraria has no in-game admin commands; for those you need TShock.
Console commands (vanilla)
Players
playing– lists all connected players.kick <player>– kicks a player from the server.ban <player>– bans a player. To unban, delete the name and IP frombanlist.txt.say <message>– sends a message to all players.
Saving and shutting down
save– saves the world.exit– saves and shuts the server down.exit-nosave– shuts down without saving.
The server only autosaves at dawn (about every 24 minutes of play). Always type save before stopping the server in the panel – otherwise the last minutes may be lost.
Time and world
dawn,noon,dusk,midnight– sets the time to dawn, noon, dusk or midnight.time– shows the current in-game time.settle– settles all water.
Showing and changing settings
password– shows the password;password <new password>changes it.motd– shows the message of the day;motd <text>changes it.maxplayers– shows the maximum number of players.port– shows the port.version– shows the version.
Other
help– lists all commands.clear– clears the console.death,pvpdeath,alldeath,allpvpdeath– show death counters.
Permanent settings belong in serverconfig.txt.
Chat commands for players
Every player can type these into the chat in the game:
/playingor/players– lists the players on the server./p <message>– message to your own team only./me <text>– action in the third person./roll– random number from 1 to 100./e <emote>or/emoji <emote>– show an emote./rps– random rock, paper or scissors./death,/pvpdeath,/alldeath,/allpvpdeath– death counters./bossdamage– damage ranking of recent boss or event fights (since version 1.4.5)./help– lists the available commands.
In-game admin commands: TShock
Vanilla Terraria has no in-game admins. If you want to kick, ban or hand out permissions in the game, use the TShock server package (a community project). First-time setup according to the TShock guide:
- Start the server with TShock – the console shows a setup code.
- In the game, type into the chat:
/setup <code> - Create your account:
/user add <name> <password> owner - Log in:
/login <name> <password> - Finish setup:
/setup
After that the TShock commands are available in the chat with /; /help lists them.
Related guides
Sources: official Terraria wiki (terraria.wiki.gg: Server, Chat), TShock documentation · Rent a server: Terraria server at NexoraHost