PlayerGameModeChangeBeforeEvent Class
Caution
This class is still in pre-release. Its signature may change or it may be removed in future releases.
Contains information regarding an event before a player interacts with an entity.
Properties
cancel
cancel: boolean;
If set to true the game mode change will be cancelled.
Type: boolean
fromGameMode
read-only fromGameMode: GameMode;
The current game mode.
Type: GameMode
player
read-only player: Player;
Source Player for this event.
Type: Player
toGameMode
toGameMode: GameMode;
The game mode being changed to.
Type: GameMode
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for