How to Set Yourself as Admin on a TShock Terraria Server
By Dalton Whalen
When playing on a TShock Terraria server, moderating players and using commands can become a common occurrence when you are the owner. By default, commands do not work while on a Terraria server, requiring you to add an admin account before they will function. This will allow you to use teleportation commands, perform server moderation, and much more from in-game. Setting yourself as an admin on a Terraria server can be confusing, so we have created this Apex Hosting guide to ease you through the setup process.
Locating the Setup Code
- Navigate to the Apex Server Panel, then start the TShock Terraria server.
- Once fully loaded up, locate the setup code in the server console tab.
- Alternatively, login to the
FTP File Accesstab on the left-hand side.
- Locate and open the
- Find the
setup-code.txtfile, then press
editto the right-hand side.
- Save the access code from the console or FTP for later.
Creating an Admin Account
- Log into your Terraria server, then press
Enterto open the chat.
- Type in
/setup, followed by your setup code from previously.
- If the code is successful, type in
/user add [username] [password] owner.
[password]with the desired information, then enter it.
- Once this is done, enter
/login [Username] [Password]using the previous information.
- If successful, you should now receive a message that the account was authenticated.
You should now be able to use any TShock server commands from in-game, such as
/home, /kick, and much more!
The setup code is not appearing:
Oftentimes, this means that TShock is not properly running on the Terraria server. You can confirm this by logging into the Terraria server and checking if the welcome message mentions TShock. If not, visit the main panel page and ensure the Game JAR file is set to
Terraria (TShock). Once this is confirmed, restart the server once again.
Commands don’t work when I log back into the game:
Now that the account has been created, you will need to log into your admin account whenever you join the server. This is necessary for any players who have an admin account created. To fix this, simply follow the previous instructions to use the
/login command and access the account you created. Once this is done, commands should be accessible once again!