Skip to content

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:

CommandEffect
/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>.txt

Ban lists ​

All bans end up in one file each inside the /Config/ directory – one entry per line:

FileContent
banned-players.txtBanned player names
banned-ips.txtBanned IP addresses
banned-keys.txtBanned public keys

Lift a ban ​

DarkMultiPlayer has no command for unbanning. You remove the entry directly from the corresponding file.

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

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

  3. Open the file
    Open the matching file in the /Config/ directory:

    /Config/banned-players.txt
  4. Delete the line
    Remove the line with the entry and save the file.

  5. 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 ​

CommandDescription
/helpShow all available commands
/listclientsShow connected players
/countclientsShow the number of connected players
/connectionstatsShow connection statistics
/say <text>Send a message to all players
/pm <player name> <text>Send a private message to a player
/dekesslerRemove abandoned debris from orbit
/nukekscRemove all vessels around the Kerbal Space Center
/restartRestart the server

Important

/nukeksc and /dekessler delete vessels permanently. Create a backup beforehand.