> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.sparkedhost.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Kick or Ban Players on a Don't Starve Together Server

Managing player behavior is important for keeping your Don't Starve Together server fair and enjoyable. Server admins can kick or ban players using in-game commands. This guide explains how to identify a player’s ID and how to use kick, ban, and unban commands.

## Using The In-Game Interface

1. Launch the Don't Starve Together game on your computer and join the server.

2. Find the player you want to kick/ban, then click the shoe icon to kick the player or the hammer icon to ban the player.

## Using Admin Console Commands

1. Launch the Don't Starve Together game on your computer and join the server.

2. Open the Local Console by pressing Ctrl + ~ on your keyboard.

3. Enter the command "c_listallplayers()" to return a list of connected players with their player IDs. Note that the text inside the parentheses is the player ID we need to kick/ban players.

   ![](https://images.surferseo.art/63d5c8fe-75fb-4536-b091-d05192b937e6.png)

4. Open the Remote Console by pressing ~ on your keyboard, and run one of the following commands to ban, kick, or temporarily ban a player.

* **TheNet:Kick("User ID")** - Removes a player from the server temporarily; the kicked player can rejoin instantly.

* **TheNet:Ban("User ID")** - Bans a player from the server and prevents them from joining permanently.

* **TheNet:BanForTime("User ID",Time_In_Seconds)** - Bans a player from the server and prevents them from rejoining for a set period. 