Banning players on your Don't Starve Together server
There are two ways to ban players.
If the players are still present on the server, they can be banned via console commands.
Banning players via blocklist.txt.
Banning players via console commands
In this example, we will use the game panel console, but you can also do this in-game.
Navigate to your Fragify console and type in the command:
c_listallplayers()
. It will list all players and their Klei IDs.Once you have found the player copy their Klei ID In this command:
TheNet:Kick("PlayerKleiID")
noteLeave the apostrophes and the parenthesis they are needed.
It should look something like this:
TheNet:Kick("KU_ex12312")
. Once executed the player is banned.
Banning players via Blocklist.txt
If the player isn’t online anymore, you can go to the server logs, search for the player's name and find their Klei ID. The server logs are located at
DoNotStarveTogether => config => server => Master => server_log.txt
.Now, we need to go to the directory where blocklist.txt is, and if it isn’t there, we need to create it. If blocklist.txt isn’t there, go ahead and click on New File in the upper right corner.
Paste the Klei ID you have acquired through the server_log.txt.
Once done, click on Create File and type in the name blocklist.txt. Exactly like that, it’s crucial.
- And press Create File again, Start/Restart your server and when the player connects, they will see this: