Project Zomboid admin commands for server owners
Make yourself admin on a Project Zomboid server and use the commands you need most: access levels, kick and ban, whitelist accounts, messages, saving and events.
Project Zomboid servers are run with commands. In game you type them in chat with a slash in front, as an admin; in the server console you type the same command without the slash. This guide covers getting admin rights and the commands owners use most. It follows the current stable game, Build 42.
The first admin account
The first time a server starts, it asks for a password for a built-in account called admin. Log in to the server with the username admin and that password and you have full rights. It is usually easier to play on your own account and give it admin rights from there:
/setaccesslevel "YourName" "admin"
Put names in double quotes, especially names with spaces. Some things are case-sensitive, such as item names: Base.Axe works, base.axe doesn't.
Access levels
setaccesslevel takes one of: admin, moderator, gm, observer, priority or user (a normal player). Give trusted helpers moderator rather than full admin. To remove someone's rights, set them back to user.
Managing players
| Command | What it does |
|---|---|
/players | List everyone online. |
/kickuser "Name" -r "reason" | Kick a player; the reason is optional. |
/banuser "Name" -ip -r "griefing" | Ban a player. -ip also bans their IP address. |
/unbanuser "Name" | Lift a ban. |
/banid 7656… / /unbanid | Ban or unban by SteamID. |
/voiceban "Name" -true | Block someone's voice chat; -false undoes it. |
/setpassword "Name" "newpass" | Reset a player's password when they forget it. |
A whitelist server
With Open=false in the server settings, only accounts you create can join:
/adduser "NewPlayer" "theirpassword"
/removeuserfromwhitelist "OldPlayer"
Give each player their name and password and ask them to keep it. DropOffWhiteListAfterDeath=true removes an account when the character dies, for servers where death is final.
Messages and saving
/servermsg "Restart in 10 minutes, find somewhere safe"
/save
/quit
servermsg sends a message to everyone online. save saves the world now, and quit saves and shuts the server down. Use save before restarting or changing mods.
Admin tools
| Command | What it does |
|---|---|
/teleport "Name" | Go to a player. /teleport "A" "B" moves player A to player B. |
/teleportto 10000,11000,0 | Go to map coordinates (x,y,floor). |
/godmod "Name" -true | Make a player unable to die. |
/invisible "Name" -true | Zombies ignore the player. |
/noclip "Name" -true | Walk through walls. |
/additem "Name" Base.Axe 1 | Give an item. Leave out the name to give it to yourself. |
/addxp "Name" Woodwork=2 | Give skill XP, for example to make up for a death caused by a bug. |
Use these to fix problems, not to play: other players notice.
Events for your group
/createhorde 100 "Name"
/chopper
/gunshot
/startrain 50
/stoprain
createhorde spawns zombies near a player, chopper sends the helicopter over a random player and gunshot plays a distant shot that draws zombies. startrain takes an optional strength from 1 to 100; startstorm and stopweather also exist.
Server options from chat
/showoptions
/changeoption PVP "false"
/reloadoptions
showoptions lists the current server settings, changeoption changes one, and reloadoptions reloads the .ini file after you've edited it. /help lists every command, and /help "command" explains one.
Want a Project Zomboid server?
New Project Zomboid servers are paused for now. Tell us on Discord if you want one, so we know when to bring them back.