Ban and Unban Players

Learn how to ban, unban, and kick players from your Project Zomboid server using in-game commands and Steam IDs.

Managing disruptive players is essential for maintaining a healthy server community. This guide covers all methods to ban, unban, and kick players.

Kick a Player

Kicking removes a player from the server immediately, but they can rejoin.

/kickuser "PlayerName"

Kick with a reason:

/kickuser "PlayerName" -r "Breaking server rules"

Ban a Player

Ban by Username

/banuser "PlayerName"

With a reason:

/banuser "PlayerName" -r "Griefing and teamkilling"

Ban by Steam ID

For players who change their name or aren't currently online:

/banid 76561198012345678

💡 Tip: Use SteamID Finder to find a player's Steam ID64 from their profile URL.

Unban a Player

Unban by Username

/unbanuser "PlayerName"

Unban by Steam ID

/unbanid 76561198012345678

View the Ban List

You can check the ban list by viewing the server files:

Navigate to the ban list

On XGamingServer, go to Files and open:

Zomboid/Server/[servername]_bans.txt

Review or edit manually

The file contains entries of banned players. You can remove entries manually to unban players, then restart the server.

Using RCON for Bans

If you use RCON, the same commands work without the / prefix:

banuser "PlayerName" -r "Cheating"
unbanuser "PlayerName"
banid 76561198012345678

Best Practices

  • Always include a reason — it helps other admins understand why someone was banned
  • Use Steam ID bans for serious offenders — username bans can be bypassed by changing names
  • Keep a ban log — document who was banned, when, and why
  • Give warnings first — for minor offenses, a kick with a reason is often enough

See also: Become a Server Admin | Admin Commands | RCON

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Project Zomboid server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page