ZomboidDB42.22 · unofficial

Project Zomboid / Admin commands / /banuser

/banuser

Bans a player, and their IP if you add -ip. The game's help: Ban a user. Add a -ip to also ban the IP. Add a -r "reason" to specify a reason for the ban. Use: /banuser "username" -ip -r "reason". For example: /banuser "rj" -ip -r "spawn kill"

From the game files: Project Zomboid Build 42.22. Commands, roles and sandbox options read from projectzomboid.jar and the game's Lua.

Command
/banuser
Who can use it
moderator and above
Capability
BanUnbanUser
Single player
No, it needs a server

What you type

/banuser "username"

/banuser "username" -ip

/banuser "username" -r "reason"

/banuser "username" -ip -r "reason"

Examples

rj is the name the game's own help uses. Put your player's name in its place.

Build this line with your own values

Which access levels can use it

Capabilitybanneduserpriorityobservergmmoderatoradmin
BanUnbanUseryesyes

These are the roles the game makes for a new server. An admin can change them in the admin panel. What each level may do.

More commands like this one

/adduser /addsteamid /removesteamid /grantadmin /removeadmin /kickuser /banid /banip /unbanuser /unbanid /unbanip /removeuserfromwhitelist /voiceban /players /setaccesslevel /setpassword /removemapsymbolsforuser

Spotted a mistake on this page, or have an idea for the site?