You can ban or unban players from your Terraria server by entering commands in your server’s console. If you don’t know how to access your server’s control panel, check out our guide here.
# Banning a Player From Your Server
Sometimes, it is necessary to ban a player from your server to keep the game fair and enjoyable for everyone. You might need to do this if the player is disruptive, cheating, or breaking the rules. Banning them can improve the experience for the other players. Here’s a simple way to ban someone.
# Banning a Player on Vanilla Server
- Log into your control panel and navigate to your Console.
- In the text field below the console log, type
ban <playername>
, replacing<playername>
with the name of the player you wish to ban
Important
**To successfully ban a player, they must be online at the time of the ban.**
Once a player is banned, they will be unable to connect to your server using any character
# Banning a Player on TShock Server
There are two ways to ban users with TShock; temporarily and permanently.
Important
When banning or unbanning players, you will need to have the tshock.admin.ban
permission on your server.
To ban a player permanently, log into your server and open the chat (/
is used by default). In the chat, enter the command /ban add <username> <reason>
to ban a specific username with a reason. If you know the player’s IP, you can use the command /ban addip <IP Address>
to ban them by their IP.
To ban a player temporarily, log into your server and open the chat. In the chat, enter the command ban addtemp <name> <time> <reason>
.
# Unbanning A Player From Your Server
Players might sometimes find themselves banned from your server by mistake, or they may face temporary bans. If you wish to remove a ban, this guide will detail the process to unban a player and reintroduce them to the server.
# Unbanning a Player on Vanilla Server
- Log into your control panel.
- Navigate to the Files tab.
- Locate and Open the
banlist.txt
file. - You will see two lines for each banned player: one line with the Player's Username and a second line with the banned Player’s IP Address. To unban a player, delete both lines and then click Save.
Once you save your changes, the player will be unbanned immediately.
# Unbanning a Player on TShock Server
If a player was banned by their username or IP, they will need to be unbanned the same way.
To unban a player by their username, log into your server and open the chat (/
is used by default). In the chat, enter the command /ban del <username>
. To unban a player by their IP, log into your server and open the chat (/
is used by default). In the chat, enter the command /ban delip <IP Address>
.