You remove players through the server console in the dashboard of your server. In the official sandbox mode, players with the admin claim can additionally kick and ban directly in the game – see Add Admin.
Use commands in the server console
-
Open the server console
Open the dashboard of your server and switch to the server console. -
List the players
Display the connected players and their SteamID64:status -
Run the command
Enter the desired command, for example:kick 76561198012345678 Rule violation
Kick a player
kick <SteamID64 or part of the name> [reason]
As the target you pass either the exact SteamID64 or part of the display name. A kick disconnects the player immediately, but they can rejoin at any time.
Ban a player
ban <SteamID64 or part of the name> [reason]
A ban kicks the player immediately and prevents them from connecting again. If you do not provide a reason, Banned is used.
Lift a ban
s&box has no unban command. In sandbox mode, banned players are stored in a file on your server which you have to edit manually.
-
Stop the server
Stop your server via the dashboard. -
Connect via SFTP
Connect to your server via SFTP. -
Open the ban list
Open the following file:/data/facepunch/sandbox/bans.json -
Remove the entry
Delete the player's entry from the list and make sure the file remains valid JSON. -
Start the server
Save the file and start your server.
Command overview
| Command | Description |
|---|---|
status |
Show server status, connected players and the lobby ID |
kick <SteamID64 or part of the name> [reason] |
Disconnect a player from the server |
ban <SteamID64 or part of the name> [reason] |
Ban a player (sandbox mode) |
game <game mode> [map] |
Switch the game mode and map |
find <text> |
Search the available commands and variables |
quit |
Shut down the server |
