Admin commands for Don't Starve Together

Print
  • 0

You must add your Klei User ID to the server's adminlist.txt before these commands will work. Join the server with that account, then open the in-game console with ~. The key can differ on some keyboard layouts.

CommandWhat it does
c_announce("Server restart in 10 minutes")Sends a message to every connected player.
c_save()Saves the current world.
c_shutdown()Saves and shuts down the game server cleanly.
c_spawn("log", 10)Spawns the specified prefab near your character.
c_give("log", 10)Adds the specified prefab to your inventory.
c_godmode()Toggles god mode for your character.

Prefab names must use the game's internal identifier. Test commands carefully and take a backup before using anything that changes the world. If the console accepts a command but nothing happens, restart the server after checking that your exact KU_ ID is present in adminlist.txt.


Was this answer helpful?

Related Articles

« Back

Follow us on Social Media

Stay in the loop! Follow our social media accounts and stay up-to-date with the latest news, announcements, tips & tricks and behind-the-scenes insights!