Managing who can access your Terraria server is essential for maintaining a positive and fair experience for everyone. Whether you’re removing disruptive players or correcting an accidental ban, this guide covers both banning and unbanning steps for Vanilla and TShock servers.
How to Ban a Player from Your Server
Sometimes, banning a player is necessary to protect the integrity of your server, especially if someone is cheating, griefing, or violating community rules.
Banning a Player on a Vanilla Server
- Log into your server’s control panel and go to the Console tab.
- In the console input field, type: ban <playername>
Replace <playername>
with the name of the user you wish to ban.
Note: The player must be online at the time of the ban for it to take effect.
Once banned, the player will be unable to connect to your server using any of their characters.
Banning a Player on a TShock Server
TShock allows you to issue temporary or permanent bans using in-game commands.
Important: You need the
tshock.admin.ban
permission to perform these actions.
- Permanent ban by username: /ban add <playername> <reason>
- Permanent ban by IP address: /ban addip <IP Address>
- Temporary ban: /ban addtemp <username> <duration> <reason>
All commands should be entered in the server’s in-game chat, with /
as the command prefix.
How to Unban a Player from Your Server
If a player has been mistakenly banned or their ban duration has expired, you can remove the restriction and allow them to rejoin.
Unbanning a Player on a Vanilla Server
- Access your control panel.
- Navigate to the Files tab.
- Open the
banlist.txt
file. - Locate the two lines related to the banned player — one for their username and another for their IP address. Delete both lines.
- Save the file.
The player will be unbanned immediately after saving your changes.
Unbanning a Player on a TShock Server
Use the corresponding command based on how the player was banned:
- Unban by username: /ban del <username>
- Unban by IP address: /ban delip <IP Address>
Run the commands in the in-game chat window.
With these commands and steps, you can easily manage bans on your Terraria server and keep your gameplay environment fun and fair for all players.