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 on how to do so here.
BANNING A PLAYER FROM YOUR TERRARIA SERVER
Vanilla
- 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
Once a player is banned, they will be unable to connect to your server using any character
TShock
There are two ways to ban users with TShock; temporarily and permanently.
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 TERRARIA SERVER
Vanilla
- Log into your server’s control panel.
- Navigate to Files > FTP File Access. Enter your control panel password and press Login.
- Navigate to
banlist.txt
and click Edit on the right. - You will notice two lines for each banned player: one line containing
//
followed by the player’s username and a second line containing the banned player’s IP Address. Delete both lines for the player you wish to unban then hit Save at the top of the page.
Once you save your changes, the player will be unbanned immediately.
TShock
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>
.