类 PlayerGameModeChangeBeforeEvent实验性

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

属性

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.