Get started

Free trial Try a game free for 3 days. No card needed. Start a free trial Start a free trial

Game servers

All games

Guides / Terraria / Server settings

TShock settings in the Config Editor, group by group

All 52 TShock settings in the Loafhosts Config Editor by group: Server, Players, Characters, World, Saving, Chat, Database and Advanced, and what each one does.

Updated , checked on Terraria TShock 6.2.1

When a server runs TShock, the Config Editor shows TShock’s own settings file as named rows. There are 52, in eight groups. Two are locked. Saved changes apply after a restart.

This applies to a Terraria server that runs TShock. The program is chosen on the World page. For the plain serverconfig.txt rows that every Terraria server has, see the Terraria Config Editor.

Open the file

  1. Open the server’s Config Editor tab.
  2. Choose TShock from the row of file buttons. It is the file tshock/config.json.
TShock file open in the Config Editor, with the Server and Players groups on the left and the World group on the right

Two things to know first:

  • TShock writes config.json only when it is missing. If the page says the file does not exist yet, start the server once.
  • Next to it is TShock server-side characters, the file tshock/sscconfig.json. It has no named rows. It opens as a file. See server-side characters.

Each row shows its help line. Some rows have none, because their label says enough. The number rows have the limits given below. Beneath the rows, an Advanced card says how many more settings the file holds (“Most servers never change them”) with Show them.

Not checked on TShock 6.2.1 as of 13 November 2026: what each row does in game beyond the help line the panel shows. The tables below add plain wording where the panel shows none.

Server

RowWhat it does
Server nameShown to players when Use server name is on. Otherwise the world’s name is shown.
Use server nameShow the server name above instead of the world’s name.
TShock join passwordEmpty uses the join password under Passwords. Set here, TShock asks for this one instead.
Reserved slotsExtra slots past the player limit for groups allowed to use them. 0 to 255.

Players

RowWhat it does
Whitelist onlyOnly addresses in tshock/whitelist.txt can join.
Account needed to playPlayers must register and log in before they can do anything in the world.
No password at the doorPlayers log in with /login once they are in, rather than as they join.
No automatic loginTurn off logging players in by their game’s id. Safer on a public server, because a malicious server can take that id.
Login attemptsWrong passwords before TShock kicks the player. 1 to 100.
Shortest account passwordFor /register. 4 to 64.
Group for new accountsThe group a player joins when they register.
Group for guestsThe group of a player who has not logged in.
Kick proxy usersKick players who join through a known proxy.

Characters

RowWhat it does
Hardcore characters onlyOnly hardcore characters can join.
Mediumcore characters onlyOnly mediumcore characters can join.
Softcore characters onlyOnly softcore characters can join.
Most healthA character with more is caught as cheating. 100 to 10,000.
Most manaA character with more is caught as cheating. 20 to 10,000.
Respawn timeIn seconds. 0 uses the game’s own. Up to 600.
Respawn time during a bossIn seconds. 0 uses the game’s own. Up to 600.

World

RowWhat it does
PvPChoose Players choose, Always on, Always off or On, teams not allowed.
Spawn protectionOnly groups allowed to can build near the world’s spawn.
Spawn protection radiusIn tiles. 0 to 1,000.
Building offNobody can change the world except groups allowed to.
Hardmode offBeating the Wall of Flesh does not start hardmode.
No Dungeon GuardianTurns the Dungeon Guardian off.
No clown bombsTurns clown bombs off.
No Frost Legion snowballsTurns the Frost Legion’s snowballs off.
No tombstonesPlayers leave no tombstone when they die.
No Skeletron Prime bombsTurns Skeletron Prime’s bombs off.
Time of dayNormal, Always day or Always night.
Always ChristmasKeeps the Christmas event on.
Always HalloweenKeeps the Halloween event on.
Crimson spreadsLets the Crimson spread.
Corruption spreadsLets the Corruption spread.
Hallow spreadsLets the Hallow spread.
Invasion sizeHow many enemies an invasion brings, as a multiple of the game’s own. 1 to 100.
Most enemies near a playerTShock’s limit. The game’s own is 5. 0 to 200.
Enemy spawn rateLower spawns more often. The game’s own is 600. 1 to 10,000.
World group of the TShock file with PvP, Spawn protection, Time of day and the enemy rows
  1. PvP
  2. Spawn protection
  3. Time of day

Saving

RowWhat it does
Save the world now and thenTurns the world’s automatic saving on or off.
Say when it savesAnnounces each save in chat.
Backup everyMinutes between TShock’s own world backups, kept in tshock/backups. 0 turns them off. Up to 1,440.
Keep backups forHow long to keep them, in minutes.
Save when the last player leavesSaves the world when the server empties.
Saving group of the TShock file with the save timer, Backup every and Keep backups for rows
  1. Save the world now and then
  2. Backup every
  3. Keep backups for

TShock’s backups are separate from the game’s own backups on the World page and from the panel’s Backups tab.

Chat

RowWhat it does
Show where players join fromTShock’s join message names each player’s country.
Show addresses to adminsAdmins in game see each joining player’s address.
Chat above headsShows chat above the player’s head.

Database

RowWhat it does
MySQL passwordOnly used when TShock stores its data in MySQL. A secret.
PostgreSQL passwordOnly used when TShock stores its data in PostgreSQL. A secret.

Advanced

RowWhat it does
REST APITShock’s web API. The panel does not need it, and its port is not open to the internet.

Locked rows

Two rows sit under Set by Loafhosts and cannot be changed here.

  • Port: the panel starts TShock on the server’s own port, whatever this says.
  • Max players: the panel starts TShock with the limit set on the Startup page, whatever this says.

Change the player limit on Startup. The port is shown on the Players page and in the server’s network settings.

Passwords

The three secret rows (TShock join password, MySQL password, PostgreSQL password) are passwords, so do not show them in a screenshot. The ordinary join password, the one most servers use, is under Passwords in the Config Editor. A new server has none.

Saving, and when it applies

Change a row. A bar reads “Unsaved changes: (n)” with Discard and Save. Choose Save. A running server says “Saved. Restart the server to apply the changes.” Choose Restart at the top of the server page. A restart drops everyone who is on, so warn them first with Message everyone on the Players page. A stopped server says “Saved. The changes apply when the server starts.”

If it does not work

  • The TShock file is not listed. The server is not running TShock. Check the World page.
  • The file does not exist yet. Start the server once so TShock writes it.
  • You changed a row and nothing changed in game. Restart the server.
  • Players cannot get in after you turned on a requirement. Whitelist only and Account needed to play both stop players who are not set up. Turn the row off, save, and restart.
  • The row for the player limit has no effect. It is locked. Use Startup.

Sources: github.com: TShock

Terraria serversAll Terraria guides