Class: PlayerGameModeChangeBeforeEvent
event playerBeta
包含玩家与实体交互前的事件相关信息。
Contains information regarding an event before a player interacts with an entity.
Properties
cancel
cancel:
boolean
Beta
如果设置为 true,游戏模式更改将被取消。
Remarks
If set to true the game mode change will be cancelled.
fromGameMode
readonlyfromGameMode:GameMode
Beta
当前的游戏模式。
Remarks
The current game mode.
player
readonlyplayer:Player
Beta
此事件的源玩家。
Remarks
Source Player for this event.
toGameMode
toGameMode:
GameMode
Beta
要更改到的游戏模式。
Remarks
The game mode being changed to.
