25% OFF First Invoice

Code at Checkout: APEX25

How to Set Yourself as Admin on a TShock Terraria Server

Last modified on Sep 2, 2022 in terraria

mc head 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

  1. Navigate to the Apex Server Panel, then start the TShock Terraria server.
  2. Once fully loaded up, locate the setup code in the server console tab.
    Admin Code
  3. Alternatively, login to the FTP File Access tab on the left-hand side.
  4. Locate and open the tshock folder.
    Admin FTP
  5. Find the setup-code.txt file, then press edit to the right-hand side.
  6. Save the access code from the console or FTP for later.
    Admin Code


Creating an Admin Account

  1. Log into your Terraria server, then press Enter to open the chat.
  2. Type in /setup, followed by your setup code from previously.
    Admin Chat
  3. If the code is successful, type in /user add [username] [password] owner.
  4. Replace [username] and [password] with the desired information, then enter it.
    Admin Chat
  5. Once this is done, enter /login [Username] [Password] using the previous information.
    Admin Chat
  6. If successful, you should now receive a message that the account was authenticated.
    Admin Chat

You should now be able to use any TShock server commands from in-game, such as
/home, /kick, and much more!

Common Issues

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!

Start Your Terraria Server

Get started with your own terraria server in 5 min and start trying out these great features.