This guide covers admin access and console commands for your Don't Starve Together dedicated server on Legion Hosting. For initial server setup, see DST Server Setup. For mod installation, see DST Mod Installation. For common issues, see DST Troubleshooting.
Admin Access
Server admins can use in-game console commands to manage the server. Admin privileges are granted by adding player Klei User IDs to the adminlist.txt file.
Finding Your Klei User ID
Your Klei User ID (KU ID) looks like KU_abc12345. You can find it by:
- Logging into accounts.klei.com and checking your account profile
- Checking the server console log when you join — it will show your KU ID
Configuring adminlist.txt
Create or edit the adminlist.txt file in your cluster directory. Add one KU ID per line:
KU_abc12345
KU_def67890
Console Commands
Press the ~ (tilde) key in-game to open the console. Prefix remote commands with c_:
| Command | Description |
|---|---|
c_announce("message") |
Send a server-wide announcement |
c_save() |
Force a world save |
c_rollback(count) |
Roll back the server by the specified number of save snapshots |
c_regenerateworld() |
Regenerate the entire world (deletes current save) |
c_shutdown() |
Gracefully shut down the server |
c_skip(count) |
Skip forward by the specified number of days |
TheNet:Kick(userid) |
Kick a player by their KU ID |
TheNet:Ban(userid) |
Ban a player by their KU ID |
c_listallplayers() |
List all connected players with their KU IDs |
c_regenerateworld() and c_rollback() are destructive and will affect all connected players. Use them carefully.
Related Articles
- DST Server Setup
- DST Mod Installation
- DST Troubleshooting
- How to Find Your Server IP and Port
- How to Upload Files via SFTP
Need Help?
If you run into an issue not covered here, submit a support ticket and include your server ID, a description of the problem, and any relevant console output from GPanel.