Project Zomboid admin commands: become admin, kick, ban (2026)

Become admin on your Project Zomboid server with setaccesslevel and use the key commands to kick, ban, teleport, give items and run a whitelist.

EliteStarHosting Team4 December 20266 min read
Project Zomboid server hosting from €10 a month: view the plans

You become admin on your Project Zomboid server in one of two ways: you log in with the admin account from Startup, or you type setaccesslevel "YourName" admin in the console of the game panel. Then you type admin commands in the chat with a / in front. Below are the commands you'll need most, for Build 42 and with the differences for Build 41.

Need a server? With our Project Zomboid server hosting your server is online in Amsterdam within minutes, from €10 a month.

Before you start

  • Which build does your server run? In December 2026, Build 42.22.2 is the stable version and 42.23 is on the Pre-Release branch. If STEAM BETA BRANCH under Startup says legacy41, your server runs Build 41. Most commands work in both builds. Where they differ, it says so.
  • Use your username on the server, the name you log in with, not your character's name. Put names in quotes, especially when they contain a space or capitals.
  • In the chat you type commands with a / in front. In the console of the panel you type them without the /. /help shows every command, /help additem explains one.

Becoming admin

With the admin account from Startup

Under Startup you find ADMIN USERNAME (admin by default) and ADMIN PASSWORD. The server creates this account on its first start. Join your server and enter this name and password for the account. You're admin straight away.

Note: the server only uses ADMIN PASSWORD when the admin account doesn't exist yet. If you change it later, the password of the existing account stays the same. See Problems below.

Making your own account admin

  1. Join your server once with your own account, so the account exists.
  2. Open your server's Console in the game panel.
  3. Type setaccesslevel "YourName" admin and press Enter.
  4. If you don't see admin options in the game yet, leave the server and join again.
setaccesslevel "YourName" admin

Levels: not everyone needs to be admin

The same command also gives a lower level. According to the official wiki, these are the levels:

  • Build 42: admin, moderator, gm, observer, priority and user. Setting someone to user takes their rights away again.
  • Build 41: admin, moderator, overseer, gm and observer. You take rights away with none.

A moderator can, for example, kick and ban players without being able to change your whole server. Only give admin to people you'd trust with your world.

The most used admin commands

These are the commands as you type them in the chat. In the console, leave out the /.

Players and moderation

  • /players: shows who's online.
  • /servermsg "Restart in 5 minutes": sends a message to everyone.
  • /kickuser "Name" -r "reason": removes someone from the server. The reason is optional.
  • /banuser "Name" -r "reason": bans someone. Add -ip to ban their IP address too. Undo it with /unbanuser "Name".
  • /banid 76561190000000000 and /unbanid 76561190000000000: ban or unban a Steam ID, so someone can't come back with a new account.
  • /voiceban "Name" -true: turns off someone's voice chat. -false turns it back on.

Teleporting

  • /teleport "Name": teleports you to a player.
  • /teleport "Player1" "Player2": teleports Player1 to Player2.
  • /teleportto 10000,11000,0: teleports you to coordinates (x,y,z). You find coordinates on the official map at map.projectzomboid.com.

After teleporting, wait a moment until the map around you has loaded.

Items, XP and vehicles

  • /additem "Name" Base.Axe 5: gives someone 5 axes. Leave out the name and you get the item yourself. Item IDs are case-sensitive: Base.Axe works, base.axe doesn't.
  • /addxp "Name" Woodwork=2: gives someone experience in a skill.
  • /addvehicle Base.VanAmbulance "Name": spawns a vehicle next to a player.
  • /invisible "Name" -true: zombies no longer see that player.
  • /noclip "Name" -true: that player walks through walls.
  • /godmode "Name" -true: that player can't die. The wiki lists a known bug with this command in Build 42, so check that it works.

World and server

  • /save: saves the world.
  • /quit: saves the world and stops the server. Stop in the panel does the same.
  • /startrain and /stoprain: start or stop the rain.
  • /chopper: sends a helicopter event to a random player.
  • /createhorde 50 "Name": spawns a horde of 50 zombies near a player.
  • /showoptions: lists every server setting with its value.
  • /changeoption PVP "false": changes one server setting while the server runs.
  • checkModsNeedUpdate: writes to the log whether a Workshop mod has an update. More in How to add Workshop mods to a Project Zomboid server.

Closing your server with a whitelist

Only want people you know on your server? Then don't look for a separate whitelist file, close the server instead:

  1. Stop your server.
  2. In Files, open .cache/Server/YOURNAME.ini, where YOURNAME is your SERVER NAME under Startup.
  3. Set Open=false and click Save Content.
  4. Start your server. Only accounts that already existed or that an admin adds can get in now.

You then manage accounts with these commands:

  • /adduser "Name" "password": creates an account for a new player.
  • /removeuserfromwhitelist "Name": removes an account from the whitelist.
  • /setpassword "Name" "newpassword" (Build 42 only): gives an account a new password.
  • /addusertowhitelist "Name" and /addalltowhitelist (Build 41 only): put one or all connected players on the whitelist.

If you also set DropOffWhiteListAfterDeath=true, an account drops off the whitelist when its character dies. More settings are in Project Zomboid server setup.

RCON

Project Zomboid supports RCON, with RCONPort= (27015 by default) and RCONPassword= in the .ini file. You don't need RCON for the console in the panel. If you want to use an external RCON tool, you need a port of your own: see Ports and allocations for how to get one, put that number after RCONPort=, choose a strong RCONPassword= and restart your server. Over RCON you type commands without the /.

Problems

  • A command does nothing or you get no access. Check which username you logged in with: the admin account and your own account are two different accounts. Give yourself admin in the console and join again. You don't need an admin account in the console.
  • You lost the admin account's password. A new ADMIN PASSWORD under Startup doesn't help, because it only applies to a new account. On Build 42, type setpassword "admin" "newpassword" in the console, with the name from ADMIN USERNAME.
  • The name isn't found. Use the username on the server, not your character's name, and put it in quotes.
  • **/additem gives nothing.** Check the item ID, with capitals and the module in front, such as Base.Axe.
  • A level doesn't exist. Level names differ per build: overseer and none belong to Build 41, user and priority to Build 42.

Read more about the console in The console: start, stop and restart your server. Players can't join? Then see Project Zomboid server not showing or can't connect.

Your own server for this? Project Zomboid server hosting from €10 a month.

Online within minutes, DDoS protection included, no contract.