Skip to content

How to Kick and Ban Players on Your 7 Days to Die Server ​

You can kick and ban players using console commands or by editing the serveradmin.xml file.

Requirement

You must be an admin on your server. Here you can find a guide on how to add an admin.

Kick or ban players via console command ​

  1. Join the server
    Join your 7 Days to Die server.

  2. Open the console
    Press F1 to open the console.

  3. List players
    Enter the command listplayers to display all connected players.

  4. Kick or ban a player
    Use one of the following commands:

    kick <Name>
    ban add <Name> <Duration> <Unit> [Reason]

    Example:

    ban add PlayerName 1 year cheating

Ban players via serveradmin.xml ​

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

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

  3. Open serveradmin.xml
    Open the file serveradmin.xml in the directory:

    /Saves/serveradmin.xml
  4. Add player to the blacklist
    Add a new entry in the <blacklist> section:

    xml
    <blacklist>
      <blacklisted platform="Steam" userid="PLAYER_STEAMID64" name="PlayerName"
        unbandate="" reason="Reason" />
    </blacklist>

Tip

Here you can find a guide on how to find a player's SteamID64.

  1. Start the server
    Save the file and start your server.

Command overview ​

CommandDescription
listplayersList all connected players
kick <Name>Kick a player from the server
ban add <Name> <Duration> <Unit> [Reason]Ban a player (e.g. ban add PlayerName 1 year cheating)
ban remove <Name>Unban a player