Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This documentation is for an older version of this module. Go to the latest documentation here.
Manages callbacks that are connected to before a players game mode is changed.
Methods
subscribe
subscribe(callback: (arg0: PlayerGameModeChangeBeforeEvent) => void): (arg0: PlayerGameModeChangeBeforeEvent) => void
Adds a callback that will be called before a players game mode is changed.
Parameters
- callback: (arg0: PlayerGameModeChangeBeforeEvent) => void
Returns (arg0: PlayerGameModeChangeBeforeEvent) => void
Notes:
- This function can't be called in read-only mode.
- This function can be called in early-execution mode.
unsubscribe
unsubscribe(callback: (arg0: PlayerGameModeChangeBeforeEvent) => void): void
Removes a callback from being called before a players game mode is changed.
Parameters
- callback: (arg0: PlayerGameModeChangeBeforeEvent) => void
Notes:
- This function can't be called in read-only mode.
- This function can be called in early-execution mode.