New

EmeraldHost 2.0 is here: faster, more intuitive, and made for everyone - the new panel!

Learn more
Guides
How to Kick and Ban Players on Your Don’t Starve Together Server
Don't Starve TogetherDon't Starve TogetherKick & Ban Players

How to Kick and Ban Players on Your Don’t Starve Together Server

Kick and ban players on a Don’t Starve Together server

2 min read
Jul 30, 2026

Don’t Starve Together comes with built-in kick and ban functions. You can use them conveniently through the in-game player list, run them as console commands or edit the ban list directly on the server.

Via the in-game player list

  1. Join the server
    Join your server as an admin.

  2. Open the player list
    Hold down the TAB key to show the player list.

  3. Kick a player
    Click the shoe icon next to the player to remove them from the server.

  4. Ban a player
    Click the hammer icon next to the player to ban them permanently.

Via the console

  1. Open the console
    Press ~ in game to open the console.

  2. List the players
    Show all players together with their Klei user ID:

    c_listallplayers()
    
  3. Kick a player
    The player is removed from the server but can rejoin:

    TheNet:Kick("KU_xxxxxxxx")
    
  4. Ban a player
    The player is permanently banned:

    TheNet:Ban("KU_xxxxxxxx")
    
  5. Ban for a limited time
    The second value is the duration in seconds – 120 therefore equals two minutes:

    TheNet:BanForTime("KU_xxxxxxxx", 120)
    

Edit the ban list

All bans are stored in the blocklist.txt file in the cluster folder. If you ban a player in game, their Klei user ID is added there automatically. You can also edit the file yourself.

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP or use the file browser in the dashboard.

  3. Open blocklist.txt
    Navigate to the folder that contains the cluster.ini file and open this file:

    <cluster folder>/blocklist.txt
    
  4. Adjust the entries
    Add exactly one Klei user ID per line – without commas and without quotation marks. To unban someone, remove the corresponding line:

    KU_xxxxxxxx
    KU_yyyyyyyy
    
  5. Start the server
    Save the file and start your server. The server only reloads the blocklist.txt on startup.

All commands

Command Description
c_listallplayers() List all players with their user ID
TheNet:Kick("KU_xxxxxxxx") Kick a player
TheNet:Ban("KU_xxxxxxxx") Permanently ban a player
TheNet:BanForTime("KU_xxxxxxxx", 120) Ban a player for 120 seconds
c_announce("text") Send a message to all players
c_save() Save the world immediately
Written byEmeraldHost Team
Last updated on Jul 30, 2026 Edit on GitHub

Did this article help you?

Your feedback helps us improve our guides.

Help shape the guides

€10.00 in credit for every new guide, €5.00 for every improvement.

Contact Support

Create a support ticket and our team will get back to you as soon as possible – personal and professional.

Go to Support
1257 members online

Discord Community

Connect with other players, get quick help from the community, and stay up to date with the latest news.

Join Discord
Don't Starve Together

Ready to get started?

Rent your Don't Starve Together Server now

Join our Discord community 1257 members online right now