Skip to content
/SLASHPLAY

How to ban a player in Project Zomboid

Type banuser "username" in the Console tab, or /banuser "username" -ip -r "reason" in game chat to ban their IP as well.

banuser

Bans a player's account from the server, optionally with their IP address and a reason.

/banuser "<username>" [-ip] [-r "<reason>"]

Examples

/banuser "rj" -ip -r "spawn kill"

Bans the account and its IP with a reason.

banuser "rj"

Bans only the account, from the Console tab.

Arguments

usernameRequired
The player's username on this server.
-ipOptional
Also bans their IP address.
reasonOptional
Text after -r, shown to the player.

What it does

Use it to keep someone out for good. Add -ip to ban the IP address they connect from too, and -r with a reason they see.

Good to know

  • Type it in the **Console** tab without the slash, or in game chat with the slash from an admin account.

Run it on your server

Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.

Your own
Project Zomboid server.

From $0.03 an hour, only while it runs. New accounts get 6 free tokens.