Contains information regarding an event before a player interacts with an entity.

Properties

cancel: boolean

If set to true the game mode change will be cancelled.

fromGameMode: GameMode

The current game mode.

player: Player

Source Player for this event.

toGameMode: GameMode

The game mode being changed to.