For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/PlayerGameModeChangeBeforeEvent.md.

Class: PlayerGameModeChangeBeforeEvent

event player

Beta

包含玩家与实体交互前的事件相关信息。

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

readonly fromGameMode: GameMode

Beta

当前的游戏模式。

Remarks

The current game mode.


player

readonly player: Player

Beta

此事件的源玩家。

Remarks

Source Player for this event.


toGameMode

toGameMode: GameMode

Beta

要更改到的游戏模式。

Remarks

The game mode being changed to.

同领域相关