Skip to content
ZomboidZomboidServer Admin

Project Zomboid Server Admin & RCON Commands: Server Admin Reference

Every Project Zomboid admin command an operator needs: enable RCON in servertest.ini, set access levels, kick and ban by username/SteamID/IP, broadcast and save, change live server options, spawn items and vehicles, and trigger weather and events - plus the headless-RCON gotchas (no-slash syntax, commands that need an online target, and /alarm needing an in-world admin).

HaldonUpdated 401 views

Project Zomboid runs a dedicated server that exposes the standard Source RCON protocol, so the same admin verbs you type in the in-game admin chat can be run remotely over RCON. This reference covers enabling RCON, access levels, moderation, server control, spawning, and the events - and flags the commands that behave differently from a headless console.

How Project Zomboid RCON works

Project Zomboid's dedicated server implements the standard Valve Source RCON protocol (TCP), so any standard RCON client works. RCON is configured by two keys in the server config file <servername>.ini (default servertest.ini, found in the Zomboid/Server/ folder):

RCONPort=27015
RCONPassword=your_strong_password

RCON is disabled until RCONPassword is non-empty. Set RCONPort explicitly: it is a separate TCP port from the game's UDP port (default 16261), and the stock config commonly ships it as 27015.

Slash prefix: in the in-game admin chat you type commands with a leading / (e.g. /servermsg "text"). Over RCON or the server console you send the same verb without the slash (servermsg "text"). The tables below use the in-game form; drop the / for RCON.

Access levels

Project Zomboid has a graded admin hierarchy. Promote a player with setaccesslevel:

setaccesslevel "username" "moderator"
LevelWhat it can do
adminFull control - every command, including server settings, bans, and spawning.
moderatorKick, ban, teleport, view player info, manage safehouses. Cannot change server settings.
overseerView player info and teleport. Cannot kick or ban.
gmEvent/game-master tools: teleport, invisibility, spawning. No general moderation.
observerInvisible spectator - watch players, no world interaction.
noneRemoves elevated access (back to a normal player).

grantadmin "username" is shorthand for setaccesslevel "username" "admin"; removeadmin "username" strips it.

Listing players

CommandWhat it does
playersLists every currently connected player by username.

Run players immediately before a kick/ban - the target must be spelled exactly as listed (quote usernames with spaces).

Moderation

CommandSyntaxNotes
kickuserkickuser "username" -r "reason"-r "reason" optional; reason is shown to the player and logged.
banuserbanuser "username" -ip -r "reason"-ip also bans the player's IP; -r optional. Without flags, bans the username only.
unbanuserunbanuser "username"Lifts a username ban.
banidbanid SteamID64Ban by Steam ID - survives a name change.
unbanidunbanid SteamID64
banipbanip IPAddress
unbanipunbanip IPAddress
voicebanvoiceban "username" -true / -falseBlocks or restores the player's voice chat.
kickuser "Bob" -r "AFK on a full server"
banuser "Cheater" -ip -r "aimbot"
banid 76561198000000000

A username ban is the weakest: a player can rejoin under a new name. Prefer banid (SteamID) for repeat offenders, and add -ip for ban-evasion resistance.

Whitelist & accounts

CommandSyntaxNotes
adduseradduser "username" "password"Creates a whitelisted account (whitelist-mode servers).
setpasswordsetpassword "username" "newpassword"Resets an account password.
removeuserfromwhitelistremoveuserfromwhitelist "username"
addSteamIDaddSteamID SteamID64Adds a Steam ID to the allowlist.
removeSteamIDremoveSteamID SteamID64

Server control

CommandSyntaxNotes
savesaveForces an immediate world save.
quitquitSaves, then shuts the server down.
servermsgservermsg "message"Broadcasts a message to everyone.
showoptionsshowoptionsPrints the current server options.
changeoptionchangeoption optionName "newValue"Changes one live server setting.
reloadoptionsreloadoptionsReloads server options and pushes them to clients.
reloadallluareloadallluaReloads all server-side Lua.
reloadluareloadlua "filename"Reloads one server-side Lua file.
checkModsNeedUpdatecheckModsNeedUpdateChecks whether subscribed mods have updates.
statsstats none/file/console/all periodSets where periodic server stats are written.
helphelp or help "command"Lists commands, or shows help for one.
servermsg "Server restarting in 5 minutes - find shelter."
changeoption PVP "false"
reloadoptions
save

Spawning & gameplay

These are game-master tools (admin / gm). The target player must be online.

CommandSyntaxNotes
additemadditem "username" "Module.Item" counte.g. additem "Bob" Base.Axe 2. Count optional (defaults 1).
removeitemremoveitem "Module.Item" countRemoves an item from the target.
addxpaddxp "username" Perk=amountRaw XP, not levels. e.g. addxp "Bob" Woodwork=2.
addvehicleaddvehicle "ScriptName" "username or x,y,z"Needs open space at the destination.
addkeyaddkey "username" "keyId" "name"Gives a key to a player.
godmodegodmode "username"Toggles damage immunity. (Note: it is godmode, not godmod.)
invisibleinvisible "username"Invisible to zombies.
noclipnoclip "username" -true/-falseWalk through walls; omit the value to toggle.
teleportteleport "player1" "player2"Moves player1 to player2 (one arg = move yourself there).
teleporttoteleportto x,y,zTeleport to coordinates (z = floor level).
removemapsymbolsforuserremovemapsymbolsforuser "username"Clears that player's map annotations.
releasesafehousereleasesafehouseReleases your claimed safehouse.

Weather & events

CommandSyntaxNotes
startrainstartrain intensityIntensity 1-100; argument optional.
stoprainstoprain
startstormstartstorm durationDuration in game-hours.
stopweatherstopweatherEnds all active weather.
chopperchopperHelicopter event on a random player.
gunshotgunshotGunshot sound near a random player.
lightninglightning "username"Username optional (random if omitted).
thunderthunder "username"Username optional.
createhordecreatehorde count "username"e.g. createhorde 150 "Bob".
alarmalarmSounds a building alarm.

Headless RCON gotchas

Some commands assume an admin player is in the world, so they behave differently from a remote RCON console:

  • alarm requires the admin to be physically inside a room in-game - it does nothing from a headless RCON session with no in-world admin.
  • createhorde requires the "username" argument over RCON - there is no "self" to default to like there is in-game.
  • chopper, gunshot, lightning, thunder target a random connected player; on an empty server they have nothing to act on.
  • teleport, additem, addxp, addvehicle need the target username to be online - they fail against a disconnected player.

MantaScope's web RCON connects to your Project Zomboid server from the browser - send these admin commands, read who is online, and manage bans without a desktop RCON tool - alongside player tracking, ban management, scheduled restarts, and chat alerts.