How to change a server setting in Project Zomboid without restarting
Type changeoption OptionName "value" in the Console tab, for example changeoption PVP "false". It also saves the value to main.ini.
changeoption
Changes one server option and saves it to main.ini.
/changeoption <optionName> "<newValue>" Examples
changeoption MaxPlayers "16" Lowers the player limit to 16.
changeoption PVP "false" Turns PvP off.
Arguments
optionNameRequired- The option's name as in main.ini, such as
MaxPlayers. newValueRequired- The new value.
What it does
Sets a server option from main.ini without opening the file. The new value is written to the file too.
Good to know
- Type it in the **Console** tab without the slash, or in game chat with the slash from an admin account.
- SLASHPLAY rewrites
PublicName,Password, the ports,RCONPasswordandSaveWorldEveryMinuteson every start, so changing those here doesn't last.
Run it on your server
Admin commands go in the Console tab of the server page without the slash (players), or in game chat with it (/players) from an admin account. Settings live in Zomboid/Server/main.ini and main_SandboxVars.lua on the Files tab and apply at the next start. New to this? Start a Project Zomboid server first.
Your own
Project Zomboid server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.