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

Dont Starve Together

·

Nov 9, 2024

·

15 Mins Read

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.

Don't Starve Together showing player ID in the admin console

  1. Run one of the following commands to ban, kick, or temporarily ban a player.
CommandDescriptionExample
TheNet:Kick("userid")Temporarily removes a player from the game. Kicked players will be able to rejoin your server instantly.TheNet:Kick("KU_oD8s1Au4")
TheNet:Ban("userid")Permanently bans a player from joining your server.TheNet:Ban("KU_oD8s1Au4")
TheNet:BanForTime("userid", time_in_seconds)Temporarily bans a player from joining your server for a set period of time.TheNet:BanForTime("KU_oD8s1Au4", 120)

# Using The Blocklist

  1. Access your control panel and Stop your server.
  2. Navigate to Files.

Don't Starve Together server with the Files button highlighted

  1. Navigate to  /config/<cluster-name>/ and create a file called blocklist.txt.

Don't Starve Together file manager at cluster folder creating a file

  1. Enter the KU ID of the players that you wish to ban from your server, separated by line.

Don't Starve Together server showing its blocklist

  1. Restart your server.

# Unbanning A Player

  1. Access your control panel and Stop your server.
  2. Navigate to Files.

Don't Starve Together server with the Files button highlighted

  1. Navigate to /config/<cluster-name>/ and click on blocklist.txt.

Don't Starve Together server showing its blocklist in the file manager

  1. Locate and remove the ID of the player, then save the file.
  2. Start your server again.

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

Ruben B

Partnership Manager