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
Join the server
Join your 7 Days to Die server.Open the console
PressF1to open the console.List players
Enter the commandlistplayersto display all connected players.Kick or ban a player
Use one of the following commands:kick <Name>kick <Name>ban add <Name> <Duration> <Unit> [Reason]ban add <Name> <Duration> <Unit> [Reason]Example:
ban add PlayerName 1 year cheatingban add PlayerName 1 year cheating
Ban players via serveradmin.xml
Stop the server
Stop your server via the dashboard.Connect via SFTP
Connect to your server via SFTP.Open serveradmin.xml
Open the fileserveradmin.xmlin the directory:/Saves/serveradmin.xml/Saves/serveradmin.xmlAdd 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><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.
- Start the server
Save the file and start your server.
Command overview
| Command | Description |
|---|---|
listplayers | List 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 |