How to Ban and Unban Players on a Project Zomboid Server (and What to Do If You're Banned)
Someone joins your server to burn down bases or kill everyone who spawns, and you want them gone for good. Or the other way round: you banned a friend in the heat of the moment and now you don't know how to undo it. Project Zomboid has three ways to shut the door (by username, by Steam account and by IP), and each one is undone with its own command. Here they all are, from the game's menu too, plus what to do if you're the one who got banned.
Kick, ban or IP ban: what each one does
Kicking (kickuser) removes them from the server now, but they can come back whenever they like. It's for a character stuck inside or for a serious warning.
Banning (banuser) shuts the door on that username. The catch: if the server lets people create accounts when they join, they can come back under another name. That's why there's the Steam ID ban (banid), which shuts the door on their whole Steam account, whatever name they use.
Banning the IP (banuser with -ip) also blocks their connection. Use it with care: it bans anyone who joins from that same connection, like a sibling in the same house, and many mobile carriers share one IP between lots of customers (CG-NAT).
Rather not set it up yourself? Project Zomboid servers from €12 a month, no contract and a full refund within 72 hours. Or create a free Project Zomboid server, no card needed.
Banning with commands
Type them in the game chat with “/” in front, or in the server console without it, from an admin account. Names go in quotes and spelled exactly the same; players shows who's connected and what they're called.
Kick
/kickuser "name" -r "reason". The reason is optional.Ban by username
/banuser "name" -r "reason". With a reason, when they try to come back they see “You are banned from this server. Reason:” followed by what you wrote, so they know why.Ban their IP too
/banuser "name" -ip -r "reason".Ban their Steam account
/banid 76561198000000000, with their SteamID64 (the 17 digits). If all you have is the link to their Steam profile, the SteamID64 finder gets it.Drop a connection that has no name
/connectionslists every connection with its number, and/disconnect 2drops number 2. Handy when someone is stuck halfway through joining.
Banning from the game, without typing
From your admin account, open the game's “Admin Panel” and click “Mini Scoreboard”: a list of players that updates itself. Right-click a player and you get “Kick”, “Ban” and “Ban IP”, along with others such as “Mute VOIP”. The same list shows their “Steam ID” so you can use it later with banid.
The admin panel has changed several times during Build 42. If your version doesn't show those options, the commands above do the same, and /help lists the ones your server has.
Unbanning someone
Bans are stored with the accounts, in the database in the db folder, not in the save. That's why resetting the world doesn't remove them: if you want a clean slate on that too, you have to unban by hand.
If you banned them by username
/unbanuser "name". The game's help has no separate command to lift just an IP: if you banned them with-ipand they still can't get in after this, see the “See Database” step.If you banned them by Steam
/unbanid 76561198000000000, with the same SteamID64 you used to ban them.If you can't remember their name
In the game's “Admin Panel”, “See Database” opens the server's tables (accounts and bans), with “Filters” to search and “Modify” and “Delete” on each row. Find their name or Steam ID there and unban them with the command, which is the safest way.
Let them back in
No restart needed: with the command they should be able to join straight away. If the server has a whitelist and you deleted their account, create it again with
/adduser "name" "password".
If you've been banned
The message tells you which kind of ban it is. “You are banned from this server” (with “Reason:” if the admin wrote one) is a username or IP ban. “Your Steam ID is banned” is on your Steam account: changing your name won't help. If you were only kicked, it isn't a ban: you can join again.
A ban belongs to that server and nobody else: it doesn't affect your Steam account or other servers. Only an admin of that server can lift it, so message them on their Discord or wherever you know each other, with your username and, if it was a Steam ban, your SteamID64.
If you get thrown out right after joining and nobody banned you, it isn't a ban: it's usually the game's anti-cheat or your mods (why Project Zomboid kicks you on joining).
Before banning, other ways out
For someone causing trouble on voice, /voiceban "name" -true takes away their voice chat and -false gives it back. For a group of friends, what best prevents trouble is not letting strangers in at all: a password or a whitelist, the locks on a private server. And if your server is public, how to open it without chaos.
With NapNodes
Commands go in the panel's “Console”, without the slash, with the server on: you don't need to be in the game. The in-game admin account is under “Settings” → “In-game admin”, and if you can't remember how a command goes, the admin command generator writes it for you.
“Settings” also has “Sound for everyone on a kick or ban”, so everyone notices when you throw someone out. Before touching accounts by hand, download the db folder from “Files”.
No server yet? The free Project Zomboid server has 6 GB, needs no card and comes with the console and every setting in the panel.
Frequently asked questions
How do I ban a player in Project Zomboid?
With /banuser "name" -r "reason" in chat (or without the slash in the server console), as an admin. To stop them coming back under another name, also ban their Steam account with /banid and their SteamID64.
How do I unban someone in Project Zomboid?
With /unbanuser "name" if you banned them by username or IP, and with /unbanid and their SteamID64 if it was a Steam ban. No server restart needed.
What's the difference between kickuser and banuser?
kickuser removes them now and they can join again; banuser stops them coming back with that username, and with -ip from their connection too.
Does resetting the world remove bans?
No. Bans are stored with the accounts, in the database in the db folder, not in the save. You have to unban with the command.
I've been banned from a Project Zomboid server, what can I do?
Only an admin of that server can lift it: message them with your username and, if the message says your Steam ID is banned, your SteamID64. The ban doesn't affect other servers or your Steam account.
Shall we set it up for you?
Project Zomboid servers from €12 a month, never oversold: your RAM is yours alone. And if you'd rather start without paying, there's a free Project Zomboid server, no card needed.
Not sure whether your server is online? Check it in a second with the Project Zomboid server status checker: players, version and password, free.
Free tool: Project Zomboid admin command generator. Pick the command (additem, addxp, teleport, createhorde, banuser…), fill in the blanks and copy it correctly written for chat or the console.
Keep reading
- Griefing in Project Zomboid: stop players burning or wrecking bases on your server
How to stop griefing on a Project Zomboid server (Build 42): who can join, the sledgehammer, fire, safehouses, finding out who did it and rolling back.
- Project Zomboid Admin Commands: The Full List (Build 42)
Project Zomboid admin commands for Build 42, with examples: players, items, teleporting, zombies, weather and the server. Plus how to type them correctly.
- Project Zomboid Server .ini Settings Explained: the Options That Matter
What each important option in Project Zomboid's servertest.ini does (Build 42): password, public list, PvP, PauseEmpty, safehouses, saving and backups.