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 / Players and the map

Set PvP mode on a TShock Terraria server

Choose how PvP works on a TShock server: Players choose, Always on, Always off, or On, teams not allowed. Set it in the Config Editor.

Updated , checked on Terraria TShock 6.2.1

PvP means players can hurt each other. On a TShock server you choose how it works with one setting called PvP. It has four choices. This setting exists only on TShock, the server program that adds accounts, groups and bans to Terraria. Terraria servers on Vanilla or tModLoader do not show it.

The four choices

  • Players choose. PvP is up to each player. Nobody is forced into it.
  • Always on. PvP is on for everyone.
  • Always off. PvP is off for everyone.
  • On, teams not allowed. PvP is on, and teams are not allowed.

If you do nothing, the server keeps whatever the setting holds now. Check it before you change it, so you know where you start.

Change it in the panel

  1. Check that the server runs TShock. Open the World page. The Server software card shows which program runs. To switch, see change the server software.
  2. Open the Config Editor.
  3. Choose the file TShock. This file is listed only when the server runs TShock.
  4. Find the group World, then the setting PvP (1).
  5. Pick one of the four choices, then choose Save in the bar that appears.
The World group of the TShock file in the Config Editor, with the PvP choice at the top, set to Players choose
  1. Pick the PvP choice
  1. Restart the server so TShock reads the new value. The panel says: “Saved. Restart the server to apply the changes.” A restart disconnects everyone who is on, so warn them first with Message everyone on the Players page.

See who has PvP on

On the Players page, a player on the server can carry the tag PvP on their row. It shows that the panel reads PvP as turned on for that player. The tag is a reading, so an empty server shows none.

By hand

The setting lives in tshock/config.json, inside the Settings object, under the key PvPMode. The panel’s choices map to these words:

  • normal is Players choose
  • always is Always on
  • disabled is Always off
  • pvpwithnoteam is On, teams not allowed

To edit it by hand, stop the server first, then open Files, go to tshock/config.json, change the value of PvPMode and save. Keep the quotes:

"Settings": {
  "PvPMode": "always"
}

Change the existing line in the real file. Do not replace the whole Settings object. Not checked on TShock 6.2.1 as of 13 November 2026: whether TShock rewrites this file when it starts.

If it does not work

  • The TShock file is not in the Config Editor. The server is not running TShock. Switch the software on the World page, then start the server.
  • Nothing changed in the game. Restart the server. The value is read when TShock starts.
  • Players still choose. The setting is still Players choose. Pick Always on or Always off if you want the server to decide.

Not checked on TShock 6.2.1 as of 13 November 2026: how each choice plays with a real player in the game. The names are the panel’s own.

Sources: github.com: TShock

Terraria serversAll Terraria guides