You can kick and ban players using console commands or by editing the serveradmin.xml file.
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>ban add <Name> <Duration> <Unit> [Reason]Example:
ban 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 -
Add player to the blacklist
Add a new entry in the<blacklist>section:<blacklist> <blacklisted platform="Steam" userid="PLAYER_STEAMID64" name="PlayerName" unbandate="" reason="Reason" /> </blacklist>
- 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 |
