How to Ban and Unban Players on a Terraria Server
Last modified on Nov 17, 2022 in Terraria
By Noah
Overview
It’s unfortunately common for some players to cause trouble on your server. They may be griefing by destroying your builds, or they may have guessed your server’s IP if it doesn’t have a password to join. No matter the case, knowing how to quickly ban someone from your server can help mitigate any problems that could be caused by malicious players. Here is a quick guide on how to ban and unban players from your Apex Hosting Terraria server.
How to Ban a Player
The steps below are for banning players on TModLoader or Vanilla Terraria. Tshock has a slightly different method for banning players. The steps will be listed below in a separate section.
- Navigate to your Apex Control Panel and login.
- Click on the
Console
tab in the menu on the left side of the page - Once the console is open, run the command
ban [player]
. Replace[player]
with the name of the player
Please note that the player you are wanting to ban must be online when you run the command. The game will be unable to ban the player otherwise.
TShock
TShock gives the option to ban a player permanently or for a set period of time. You can also add a reason for the ban to help you stay organized.
- Navigate to your Apex Control Panel and login.
- Click on the
Console
tab in the menu on the left side of the page - To permanently ban a player, run the command
ban add [player] “[reason]”
. Replace[player]
with the player name and[reason]
with the reason for the ban if you wish to add one. - To temporarily ban a player, run the command ban addtemp [player] [time] “[reason]”. Replace [player] with the player’s name, [time] with how long you want the ban to last, and [reason] with the reason for the ban if you wish to add one.
- Navigate to your server’s Control Panel
- Click on the
Config Files
tab in the menu on the left side of the page. - Locate and click on the
Terraria Bans
file on the next page. - The file will list the name of every player that has been banned from the server with their IP Address beneath it. Delete both the name and the address of the player you want to pardon from the file.
- Press the green
Save
button at the top of the page. - Navigate to your server’s Control Panel
- Click on the
Console
tab in the menu on the left side of the page - Run the command
ban del [player]
. Replace[player]
with the name of the player you want to unban.
Please note that the player you are wanting to ban must be online when you run the command. The [reason]
must also be placed in quotes to be used.
How to Unban a Player
The process below will work for the Vanilla and TModLoader versions of the game. TShock uses extra commands that will be listed in a separate section.
The player will be unbanned immediately without having to restart the server.
TShock
TShock adds some extra commands to help manage the server including banning and pardoning players. Players can be unbanned using commands by following these steps.
The player will be able to join the server again immediately.
Conclusion
It’s never fun to ban players, but sometimes it is needed to keep your server and your players safe from malicious griefers. Thankfully, banning and unbanning players is fairly quick and easy to do. By running a single command through the console it is possible to remove problematic players and continue playing peacefully. The temporary ban command is also good for managing players that are being a nuisance, but haven’t done anything you as the owner consider ban worthy. Temporary bans are very useful for enforcing the rules of your server without having to keep track of time on your own. With this quick guide you are ready to better manage your players and remove any problematic users.
Helpful Links
How to Add Plugins to Your Terraria Server
How to Install TShock on Your Terraria Server
How to Set a Password on Your Terraria Server