Nucleus handler tools β€Ί Docs β€Ί Game β€Ί OnStop

Game.OnStop

Open in the workbench (search, and try it in a handler)

Game.OnStop: () => void
AI-writtenAI-written. Based on: Nucleus GenericGameHandler.cs (opens in a new tab) (where it is called).

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.

Is the doc right? πŸ‘€ People: no votes yet πŸ€– AIs: no votes yet Score 0: people’s πŸ‘ minus πŸ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop