How To Kick And Ban Players From Your Don't Starve Together Server

There are times when a disruptive or unwanted player may join your Don't Starve Together server. This article will walk you through the process of kicking, banning and temporarily-banning players that are causing issues on your server.

Note: Before being able to kick or ban a player, you must be assigned as an administrator. You can find our article to help you with this here.

Using The In-Game Interface

The simplest method of banning a player is by using the in-game interface.

  1. Hold down the TAB key while in-game to open the player list.
  2. Find the name of the player you want to remove and click the shoe icon to kick them, or the hammer icon to ban them.

Using Admin Commands

  1. Open the developer console by pressing the ~ key.
  2. Run the command c_listallplayers()  to find the player's ID.
  3. Run one of the following commands to ban, kick or temporarily ban a player.

 

Command Description Example
TheNet:Kick("userid") Temporarily removes a player from the game. Kicked players will be able to rejoin your server instantly. TheNet:Kick("KU_Oas218DF")
TheNet:Ban("userid") Permanently bans a player from joining your server. TheNet:Ban("KU_Oas218DF")
TheNet:BanForTime("userid",time_in_seconds) Temporarily bans a player from joining your server for a set period of time. TheNet:BanForTime("KU_Oas218DF", 120)

Using The Blocklist

  1. Access your control panel and Stop your server.
  2. Navigate to Files > FTP File Access, log in with your Multicraft password.
  3. Navigate to  /config/<cluster-name>/ and create a file called blocklist.txt.
  4. Enter the KU ID of the players that you wish to ban from your server, separated by line.
     
  5. Restart your server

Unbanning A Player

Warning: When removing a player that was banned using admin commands from the blocklist an external FTP client must be used instead of the Multicraft FTP Panel.
  1. Access your control panel and Stop your server.
  2. Connect to your server's FTP. We recommend using FileZilla for this.
  3. Navigate to /config/DSTServer/ and download the blocklist.txt file.
  4. Open the blocklist.txt file using a text editor such as notepad.
  5. Locate and remove the ID of the player then save the file.
  6. Reupload the blocklist.txt file  to /config/<cluster-name>/.
  7. Restart your server.

If you would like to know how to make your server private and avoid unwanted players joining your server, we have another article on our Knowledgebase that will guide you through the entire process here.

If you require any further assistance, please contact our support at: https://shockbyte.com/billing/submitticket.php

Mitchell Smith

Managing Director @ Shockbyte

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Set Your Don't Starve Together Server To Private

Creating a private server is a great way to avoid unwarranted players joining your server, so you...

How to Add a Custom Map to your Don't Starve Together Server

If you have an existing single-player Don't Starve Together map or a map that you have found...

Getting Started with your Don't Starve Together Server

Excited to begin your adventure with your friends in Maxwell's World? This page includes links to...

How to Change a Player's Character on your Don't Starve Together Server

A player on your server may wish to change the character they picked when first joining your...

How to Change the Name and Description of your Don't Starve Together Server

Customising your server name and description is a great way to personalise your server. Server...