You remove players via RCON – either in the game through the chat or through the external remote console.
Find the player ID
Kick and ban work with the player ID, not with the name.
-
Open the chat
PressTin the game to open the chat. -
List the players
Show all connected players with their ID, name, IP address and ping:/rcon players -
Note the ID
Note the ID of the player – and for a planned ban also their IP address.
Kick a player
/rcon kick 3
The player is disconnected from the server and can rejoin immediately.
Ban a player
/rcon ban 3
The player is kicked from the server and locked out.
Ban an IP address directly
/rcon banip 123.45.67.89
This locks out an IP address even when the player is not currently connected. Wildcards are accepted, so entire ranges can be blocked:
/rcon banip 123.45.67.*
Lift a ban
/rcon unbanip 123.45.67.89
Command overview
| Command | Description |
|---|---|
/rcon players |
List all connected players with ID, name, IP address and ping |
/rcon kick <ID> |
Disconnect a player from the server |
/rcon ban <ID> |
Lock a player out (applied to their IP address) |
/rcon banip <IP> |
Ban an IP address, wildcards allowed |
/rcon unbanip <IP> |
Lift the ban for an IP address |
/rcon reloadbans |
Reload the ban list |
Edit the ban list via SFTP
All bans are written to a file in the main directory of your server. Which one it is depends on your server variant:
| Server | File |
|---|---|
| open.mp | bans.json |
| SA-MP | samp.ban |
Among other things the file contains the banned IP address as well as the date, time and the name or reason of the ban.
-
Connect via SFTP
Connect to your server via SFTP. -
Edit the file
Open the ban file in the main directory and remove or add the entries you want. -
Reload the list
Afterwards run the following command in the game:/rcon reloadbans
