Restart the server
pz_restartApply config or mod changes by restarting the gameserver, which disconnects players. Also starts a stopped server; takes about a minute.
Instructions
Restart the gameserver so config or mod changes take effect. Players are disconnected. Call this after any write, once the user confirms. This is also how you START a stopped server — the API has no separate start action. Takes roughly a minute; pz_server_status may still report 'started' for a few seconds afterwards, so don't read a stale status as the restart having failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Notice shown to players before the restart, if supported. | |
| service_id | No | Nitrado service id. Defaults to NITRADO_SERVICE_ID when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |