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.
- Hold down the TAB key while in-game to open the player list.
- 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
- Open the developer console by pressing the
~
key. - Run the command
c_listallplayers()
to find the player's ID. - 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
- Access your control panel and Stop your server.
- Navigate to Files > FTP File Access, log in with your Multicraft password.
- Navigate to
/config/<cluster-name>/
and create a file calledblocklist.txt
. - Enter the KU ID of the players that you wish to ban from your server, separated by line.
- Restart your server
Unbanning A Player
- Access your control panel and Stop your server.
- Connect to your server's FTP. We recommend using FileZilla for this.
- Navigate to
/config/DSTServer/
and download theblocklist.txt
file. - Open the
blocklist.txt
file using a text editor such as notepad. - Locate and remove the ID of the player then save the file.
- Reupload the
blocklist.txt
file to/config/<cluster-name>/
. - 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