Skip to content

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:

clientlist

Kick 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:

  1. Stop the server
    Stop your server via the dashboard.

  2. Connect via SFTP
    Connect to your server via SFTP.

  3. Open banlist.txt
    Open the file banlist.txt at:

    /config/banlist.txt
  4. Remove player
    Delete the line with the player you want to unban.

  5. Start the server
    Start your server.

All commands ​

CommandDescription
clientlistShow 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