Terraria Dedicated Server: TShock Anti-Grief and Protection Guide
A public Terraria dedicated server is an easy target for griefers using "infinite reach" or "explosive spam" cheats. To host a safe community in 2026, switching from the vanilla server executable to TShock is mandatory. TShock provides the API needed for robust user management and world protection.
🛡️ Region Protection
Define specific areas (like spawns or arenas) where blocks cannot be placed or destroyed by non-admins.
👥 Group Permissions
Create roles like "Builder", "Trustee", and "Moderator" to control who can use specific items or commands.
Basic Security Configuration
Once you have TShock running on your dedicated hosting, your first step is to secure the superadmin account. Use the server console to generate the setup code, then register in-game:
/setup [code]
/user add [name] [password] superadmin
/login [name] [password]
Crucial Anti-Grief Settings
Edit the sscconfig.json (Server Side Characters) and config.json to enable these protections:
- Server Side Characters (SSC): Prevents players from bringing in "modded" items from local worlds. All inventory is stored on the server.
- Anti-Cheat Hooks: TShock automatically detects and kicks for tile-kill spam and rapid-projectile fire.
- Hardcore/Mediumcore Enforcement: Force all players to use a specific character type to maintain server balance.
Using Regions to Protect Your Spawn
Prevent griefers from mining the spawn point using the region tool:
- Set the edges of your region:
/region set 1and/region set 2. - Define the region:
/region define SpawnProtection. - Allow builders only:
/region allow [group] SpawnProtection.
Pro Tip: Use the /checkupdates command in TShock to ensure you are protected against the latest client-side exploits. 2026 exploits can often bypass older TShock versions.
Managed Terraria Hosting
Don't let a single griefer destroy 100 hours of building. At Supercraft, our Terraria server hosting comes with TShock pre-installed, a web-based console for easy user management, and automated daily world backups to keeping your creations safe.