How to Kick and Ban Players on Your Kerbal Space Program Server ​
You remove players from a DarkMultiPlayer server with commands – either in the console of your dashboard or directly in the game if you are an admin. What you always specify is the DMP player name, not a SteamID64.
Warning
In the console of your dashboard all commands need a leading slash. Text without / is sent as a chat message to all connected players.
Note
To use the commands in the game you need admin rights. See Add Admin. In the #Server channel of the DMP chat you then enter the commands without the /.
Kick a player ​
/kick <player name> [reason]The player is disconnected from the server but can rejoin at any time. The reason is optional and is shown to the player.
Tip
The command /listclients shows the names of the currently connected players.
Ban a player ​
A ban is permanent – DarkMultiPlayer does not support time-limited bans. There are three independent variants:
| Command | Effect |
|---|---|
/ban <player name> [reason] | Bans the player name |
/banip <IP address> [reason] | Bans the IP address |
/bankey <public key> [reason] | Bans the player's key |
Important
The three ban types work independently of each other. Banning a player name does not stop anyone from coming back under a different name. For a reliable ban use /bankey in addition.
Find the public key
You can find the key of a player via SFTP in the file:
/Universe/Players/<player name>.txtBan lists ​
All bans end up in one file each inside the /Config/ directory – one entry per line:
| File | Content |
|---|---|
banned-players.txt | Banned player names |
banned-ips.txt | Banned IP addresses |
banned-keys.txt | Banned public keys |
Lift a ban ​
DarkMultiPlayer has no command for unbanning. You remove the entry directly from the corresponding file.
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Open the file
Open the matching file in the/Config/directory:/Config/banned-players.txtDelete the line
Remove the line with the entry and save the file.Start the server
Start your server. The ban is lifted.
Warning
The ban lists are only read on server start and are rewritten completely from memory on every change. If you edit the files while the server is running, your changes are overwritten. Always stop your server first.
Other useful commands ​
| Command | Description |
|---|---|
/help | Show all available commands |
/listclients | Show connected players |
/countclients | Show the number of connected players |
/connectionstats | Show connection statistics |
/say <text> | Send a message to all players |
/pm <player name> <text> | Send a private message to a player |
/dekessler | Remove abandoned debris from orbit |
/nukeksc | Remove all vessels around the Kerbal Space Center |
/restart | Restart the server |
Important
/nukeksc and /dekessler delete vessels permanently. Create a backup beforehand.