OnServerShutdown
Jump to navigation
Jump to search
onServerShutdown
Triggered while the multiplayer server is beginning an orderly shutdown.
Availability
This event is available in server-side scripts.
Callback signature
onServerShutdown()
Parameters
This event does not pass parameters to its handler.
Examples
Handle the event:
addEventHandler("onServerShutdown", root, function()
outputDebugString("Server shutdown requested")
end)
Notes
- Keep shutdown handlers short; persistence work should normally be performed continuously.