Don't Starve Together server administration uses Lua console commands. This guide covers essential admin commands for managing your DST server, from player management to world controls. Open the console with the ~ key.
Setting Up Admins
- 1Find your Klei User ID (visible in game or on Klei website)
- 2Navigate to your server's admin list file
- 3Edit adminlist.txt in your server folder
- 4Add Klei User IDs, one per line (format: KU_xxxxxxxx)
- 5Restart the server for changes to take effect
Tip
- Klei IDs start with KU_ followed by characters
- Admins have access to all server commands
- Multiple admins can be added, one per line
Player Management Commands
TheNet:Kick("KU_userid")Kick a player by Klei ID
Example: TheNet:Kick("KU_abc123")
TheNet:Ban("KU_userid")Ban a player permanently
Example: TheNet:Ban("KU_abc123")
c_listallplayers()List all connected players
Example: Shows names and Klei IDs
c_announce("message")Send server-wide announcement
Example: c_announce("Server restart in 5 min")
Tip
- Use c_listallplayers() to find Klei IDs
- Bans are stored in blocklist.txt
- Console commands are case-sensitive
Admin Utility Commands
c_godmode()Toggle god mode for yourself
Example: Invincibility
c_supergodmode()God mode + no hunger/sanity drain
Example: Complete protection
c_speedmult(mult)Set movement speed multiplier
Example: c_speedmult(2) for double speed
c_goto(player)Teleport to a player
Example: c_goto(Clients[2])
c_move(player)Teleport player to your cursor
Example: c_move(Clients[2])
c_reveal()Reveal entire map
Example: See all explored
Item and Entity Commands
c_give("prefab", amount)Give yourself an item
Example: c_give("log", 20)
c_spawn("prefab")Spawn entity at cursor
Example: c_spawn("beefalo")
c_removeall("prefab")Remove all of a specific entity
Example: c_removeall("spider")
c_regenerateworld()Regenerate the entire world
Example: WARNING: Deletes everything!
Tip
- Find prefab names on the DST wiki
- Items go directly to inventory
- Spawned entities appear at cursor
World Control Commands
c_skip(days)Skip forward in time
Example: c_skip(5) for 5 days
c_setseason("season")Change the current season
Example: c_setseason("winter")
c_setsanity(value)Set your sanity (0-1)
Example: c_setsanity(1)
c_sethealth(value)Set your health (0-1)
Example: c_sethealth(1)
c_sethunger(value)Set your hunger (0-1)
Example: c_sethunger(1)
Tip
- Seasons: autumn, winter, spring, summer
- Values are percentages (1 = 100%)
- Time skip affects world events
Server Control
c_save()Force save the world
Example: Use before maintenance
c_shutdown()Shutdown the server gracefully
Example: Saves first
c_rollback(count)Rollback to previous save
Example: c_rollback(1) for last save
Tip
- Regular saves prevent data loss
- Rollback is useful for recovering from griefing
- Shutdown saves before closing
Ready to Start Your Don't Starve Together Server?
Get instant setup, powerful hardware, and 24/5 support with Loafhosts.
Get Don't Starve Together Hosting