跳转至

PlayerGameModeChangeBeforeEvent

文档版本:1.21.60.21

PlayerGameModeChangeBeforeEvent类。script_api.minecraft/server.playergamemodechangebeforeevent.description

属性

cancel
cancel: boolean;
fromGameMode
read-only fromGameMode: GameMode;
player
read-only player: Player;
toGameMode
toGameMode: GameMode;