Project Zomboid Server Commands
The most important admin and console commands for your Project Zomboid server: assign roles, kick and ban players, save, give items and teleport.
Quick answer: In the panel console you type commands without a slash (save), in the in-game chat with a slash (/save). Give admin rights with setaccesslevel "name" admin. help lists every command your server knows.
Applies to: Build 42.22.2. Build 42 switched permissions to roles and changed some commands – check with help what your version supports.
Where do you enter commands?
- Panel console: type commands directly, without
/. - In game: in chat with
/in front, e.g./players. You need the right role for this. - Admin account: our panel creates an admin account at startup. User name and password are on the Startkonfiguration (startup) tab (Admin Username, Admin Password). You can log in as admin in game with this name.
Assigning roles
Build 42 has, among others, the roles admin, moderator, overseer, gm and observer:
setaccesslevel "PlayerName" admin
setaccesslevel "PlayerName" moderator
help shows which roles your server knows. You can also adjust roles and their rights in the admin window in game.
Managing players
players– list of all players online.kickuser "name"– kick a player.banuser "name"– ban a player;unbanuser "name"lifts the ban.banid <SteamID>/unbanid <SteamID>– ban by Steam ID (also for players who are offline).adduser "name" "password"– create an account, e.g. for whitelist servers withOpen=false.
Controlling the server
servermsg "text"– message to all players.save– save the world now.quit– save and shut down the server. Better than a hard stop.showoptions– show the current server settings.changeoption Option "value"– change one setting, e.g.changeoption PVP "false".reloadoptions– reload the server INI without a restart.checkModsNeedUpdate– checks whether the installed Workshop mods have updates.
Admin tools
additem "name" Base.Axe 1– give an item (item ID with module, e.g.Base.).addxp "name" Skill=amount– give experience in a skill.addvehicle– spawn a vehicle;helpshows the exact syntax.teleport "name"– teleport to a player;teleportto x,y,zto coordinates.
Many more tools (invisibility, god mode, noclip, weather, hordes) are easier to use in Build 42 via the admin window in game.
Tips
- Before a restart:
servermsg "Restart in 5 minutes", thensave, thenquit. - Always put names with spaces in quotes.
- Do not share the admin password from the panel – give others their own role instead.
Related guides
Servers at NexoraHost: Rent a Project Zomboid server · Manage: panel.nexorahost.de (Frankfurt · 1 Tbit/s DDoS · 99.9% uptime)