-
Notifications
You must be signed in to change notification settings - Fork 0
GameStages
roidrole edited this page Sep 3, 2025
·
4 revisions
Allows listening to events related to Game Stages.
requires config:eventcategory.allowGameStagesEvents=true
You can call these methods with the events global keyword.
All types are imported by
import mods.ctintegration.gamestages.[Event Type];| Methods | Description |
|---|---|
| onGameStageAdd(GameStageAddEvent) | Fires when a game stage is added to a player, is cancelable |
| onGameStageAdded(GameStageAddedEvent) | Fires when a game stage is Successfully added to a player, is NOT cancelable |
| onGameStageRemove(GameStageRemoveEvent) | Fires when a game stage is removed from a player, is cancelable |
| onGameStageRemoved(GameStageRemovedEvent) | Fires when a game stage is Successfully removed from a player, is NOT cancelable |
| onGameStageCleared(GameStageClearedEvent) | Fires when a player's game stages are cleared |
All above events implement IPlayerEvent, allowing getPlayer(). They also, except for GameStageClearedEvent, implement IGameStageEvent, allowing the following
| Method | Return Value | Description |
|---|---|---|
| getGameStage | string | The name of the game stage related to this event |