Skip to content
Skyes Hosting

Adding Admins and Basic Commands in Project Zomboid

Make a player admin or moderator on a Project Zomboid server with setaccesslevel, run commands from the Console and chat, and use the most common admin commands.

project-zomboidWritten by 5 min read0 viewsUpdated

Adding Admins and Basic Commands in Project Zomboid

Admins on a Project Zomboid server can kick or ban players, give items, teleport, change server settings, and trigger events such as hordes or helicopters. These rights are granted through an access level.

In short: open the panel Console → type setaccesslevel "YourName" "admin" → join the game → admin commands work from chat with a leading /.

Console or chat: the / difference

WhereHow to write itExample
Console in Skyes Game PanelWithout /players
Chat in gameWith //players

Two more rules to remember:

  • Player names with spaces must be wrapped in double quotes, for example "John Smith". To be safe, always use quotes.
  • Access level names and item IDs are case-sensitive. admin works; Admin is not recognized.

Step 1 — Make yourself an admin

  1. Make sure the server is running and you have joined it at least once (so your account exists).

  2. Open the panel Console.

  3. Type this command, replacing YourName with your server username, and press Enter:

    setaccesslevel "YourName" "admin"
    
  4. Join the game. If you are already in, leave and rejoin so the new rights load.

To turn a player back into a regular player:

setaccesslevel "YourName" "user"

The old grantadmin and removeadmin commands are no longer used. Use setaccesslevel.

Access levels

LevelFor
adminThe server owner: full access
moderatorHelps manage players: kick, ban, teleport
gmGame master: runs events and manages players
observerWatches: can fly and stay invisible, limited access
userRegular player

You can fine-tune what each level can do from the in-game ADMIN menu (Build 42), in the role settings.

The built-in admin account

A dedicated server creates a built-in admin account on its first start. If the panel's Startup tab offers an Admin Username or Admin Password setting, you can use that account to log in as admin. Keep its password private.

Player management commands

Command (chat)What it does
/playersLists online players
/kickuser "name" -r "reason"Kicks a player; the reason is optional
/banuser "name" -r "reason"Bans a player. Add -ip to ban their IP address too
/unbanuser "name"Lifts a ban
/banid <SteamID>Bans by Steam ID, even while the player is offline
/unbanid <SteamID>Lifts a Steam ID ban
/adduser "name" "password"Creates an account (for closed servers, Open=false)
/removeuserfromwhitelist "name"Removes a player from the whitelist
/setaccesslevel "name" "level"Changes the access level

Admin commands for yourself and players

Command (chat)What it does
/teleport "name"Moves you to a player
/teleport "player1" "player2"Moves player1 to player2
/teleportto x,y,zMoves you to coordinates
/godmode "name" -trueMakes a player invulnerable. -false turns it off
/invisible "name" -trueMakes a player invisible to zombies
/noclip "name" -trueWalk through walls
/additem "name" "Base.Axe" 1Gives an item. See Project Zomboid Item IDs
/addxp "name" Woodwork=2Adds skill levels (skill names use internal names)
/addvehicle "Base.VanAmbulance" "name"Spawns a vehicle near a player

Server commands

Command (chat)What it does
/servermsg "message"Sends an announcement to every player
/saveSaves the world now
/quitSaves, then shuts the server down
/showoptionsShows server settings
/changeoption OptionName "value"Changes one setting, for example /changeoption PVP "false"
/reloadoptionsReloads the .ini file without a restart (does not apply to mods)
/checkModsNeedUpdateChecks whether Workshop mods need updates (result goes to the log)
/helpLists available commands

Event and weather commands

Command (chat)What it does
/createhorde 50 "name"Spawns 50 zombies near a player
/chopperCalls a helicopter near a random player
/gunshotMakes a gunshot sound near a random player
/startrain 50Starts rain, intensity 1–100
/stoprainStops rain
/lightning "name" / /thunder "name"Lightning or thunder near a player

From the Console, commands that take "name" need a player name, because the Console has no character of its own.

Troubleshooting

ProblemCommon causeFix
"Access Level ... unknown"Wrong level name or capital lettersUse admin, moderator, gm, observer, or user
A Console command does nothingIt was typed with /Drop the / in the Console
"has not right to execute"The player's level is too lowRaise it with setaccesslevel
A command fails for a name with spacesThe name is not quotedWrite "John Smith"
"Item ... doesn't exist"Wrong item ID or lowercaseWrite it exactly, for example Base.Axe
Admin rights are not active yetThe player was in game when the level changedLeave and rejoin

Safe practices

  • Give admin only to the server owner. For staff, use moderator or gm.
  • Never share the built-in admin account's password.
  • Run /save before big commands such as /createhorde.
  • Announce restarts or rule changes with /servermsg.

If admin commands still do not work, contact Skyes Hosting support and include the server name, the command you typed, and the message that appeared.

Was this article helpful?

Open support center