Don't Starve Together has console commands for running your server. You can enter them in your server's Console in Bropanel, or in game if you are an admin.
Using The Console In Bropanel
- 1Log in to Bropanel and select your server.
- 2In the sidebar, go to
Console. - 3Type a command and press
Enter.
Commands run on the surface world. Type them exactly as shown, with the brackets and quotes.
| Command | What it does |
|---|---|
c_save() | Saves the world now. |
c_announce("Restarting in 5 minutes") | Shows a message to everyone on the server. |
c_listplayers() | Lists the players online with their Klei User IDs. |
TheNet:Kick("KU_AbCd1234") | Kicks a player by their Klei User ID. |
TheNet:Ban("KU_AbCd1234") | Bans a player by their Klei User ID. |
c_rollback(1) | Rolls the world back to the last save. Use a higher number to go back further. |
c_regenerateworld() | Deletes the world and starts it over. Everything players built is lost. |
The world saves at the start of every in-game day, so c_rollback(1) usually takes you back to the start of the current day.
Bans are kept in blocklist.txt in DoNotStarveTogether/config/server. To unban a player, Stop your server, remove their ID from that file in Files, then start your server.
Tip
Stop and Restart in Bropanel save both the surface and the Caves before the server stops, so you don't need c_save() first.
Using Commands In Game
Admins can run the same commands while they play. Press the ~ key to open the console. It starts in Remote: mode, which runs commands on the server, and Ctrl switches between Remote: and Local:. In Remote: mode, commands like c_give("log", 20) act on your own character.
