Nucleus handler tools › Docs › Game › OnStop
Game.OnStop
Open in the workbench (search, and try it in a handler)
Game.OnStop: () => void
Called when the session ends, with the last player's Context/Player. If it throws, Nucleus skips its cleanup (leftover processes, registry restore, temporary users, backups), so keep it error-free. Context is undefined if the session ends before the first instance was set up.
✎ AI-written, based on Nucleus GenericGameHandler.cs (where it is called). Not from the official docs. Is it wrong? Tell us
Is this right?
Tell us what's wrong