You remove players either directly from within the game using the in-game console or via RCON. Permanent bans end up in the file Bans.cfg, which you can edit via SFTP.
Use commands in game
-
Open the console
Press the~key in game to open the in-game console. -
List the players
First display all connected players with their name, ID number and SteamID64:admin status -
Run the command
Run the desired command with theadminprefix in front, for example:admin kick PlayerName RuleViolation
Kick a player
admin kick <name> [reason]
admin kickid <id#> [reason]
The player is disconnected from the server immediately but can rejoin at any time. The ID number comes from the output of admin status.
Ban a player
admin ban <name> [reason] [duration]
admin banid <id#> [reason] [duration]
The duration is given in minutes. A value of 0 – or leaving the duration out – means a permanent ban.
Command overview
| Command | Description |
|---|---|
admin status |
Show all players including ID number and SteamID64 |
admin kick <name> [reason] |
Disconnect a player by name |
admin kickid <id#> [reason] |
Disconnect a player by ID number |
admin ban <name> [reason] [duration] |
Ban a player by name |
admin banid <id#> [reason] [duration] |
Ban a player by ID number |
Lift a ban
Banned players are listed in the file Bans.cfg. A ban is lifted by deleting the corresponding line.
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open Bans.cfg
Open the following file:/HarshDoorstop/Saved/Config/LinuxServer/Bans.cfg -
Delete the line
Each line contains a SteamID64 followed by a colon and a number:76561198012345678:0Delete the entire line of the player you want to unban.
-
Start the server
Save the file and start your server.
Send commands via RCON
Instead of the in-game console you can send the same commands through an external RCON client – then without the admin prefix, so for example status, kick, kickid, ban and banid.
