As an admin on your Don't Starve Together server, you can kick or ban players, save the server, send announcements, and reset the world if needed. The adminlist.txt file in your server's cluster folder determines which players are admins. Here's how to add yourself and other players as admins.
Admins are added using their Klei User ID. It has the format KU_ followed by several characters, for example KU_aBcD1234.
When a player joins your server, the server writes a line containing their ID to the output when they log in, similar to this:
Read save location file for (KU_aBcD1234)
You can find this line in the Console tab of your game server.
Without an adminlist.txt file (or if the file is empty), only the player whose Klei account owns the Klei Cluster Token entered under Startup Parameters in the Configuration is an admin on a public server.
- Stop your server.
- Open the Files tab or connect to your server via SFTP.
- Go to the
DoNotStarveTogether/Cluster_1/folder. - Create the
adminlist.txtfile there, or open it if it already exists. - Add one Klei User ID per line:
KU_aBcD1234
KU_eFgH5678
- Save the file and start the server.
The adminlist.txt file belongs in the Cluster_1 folder, not in the Master or Caves subfolders. It applies to the entire server, including the caves.
To revoke a player's admin privileges, remove their line from adminlist.txt and restart the server.
The Console in the panel is read-only for Don't Starve Together. You must enter admin commands in the game:
- Open the console in the game. On English keyboards, the default key is
~. - Press
Ctrlto switch to Remote mode. This ensures the commands run on the server rather than just locally. - Enter the command you want and press
Enter.
| Command | Description |
|---|---|
c_announce("Neustart in 5 Minuten") | Sends an announcement to all players |
c_save() | Saves the world immediately |
c_rollback(1) | Rolls the world back by the specified number of saves |
c_listallplayers() | Lists all players with their names and player numbers |
TheNet:Kick("KU_aBcD1234") | Kicks a player from the server |
TheNet:Ban("KU_aBcD1234") | Bans a player from the server |
As an admin, you can also kick and ban players more easily from the in-game player list (scoreboard).