How to Kick and Ban Players on Your Barotrauma Server ​
As an admin you can kick and ban players using the in-game console.
Open the console ​
Press F3 or the tilde key (~) to open the command console.
Show connected players ​
Use the following command to list all connected players with their client IDs:
clientlistKick a player ​
kick [name]The player is removed from the server but can rejoin.
Ban a player ​
You can ban a player by name or by client ID:
ban [name]banid [client id]The player is permanently banned from the server.
Unban a player ​
To unban a player via the console:
unban [name]You can also edit the ban list file directly:
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Open banlist.txt
Open the filebanlist.txtat:/config/banlist.txtRemove player
Delete the line with the player you want to unban.Start the server
Start your server.
All commands ​
| Command | Description |
|---|---|
clientlist | Show connected players with IDs |
kick [name] | Kick a player |
ban [name] | Ban a player by name |
banid [client id] | Ban a player by client ID |
unban [name] | Unban a player |