BedrioxDOCUMENTATION
API CLASS

PlayerGameModeChangeEvent

Cancellable intent emitted before the authoritative player mode changes.

Bedriox\Api\Event\Player\PlayerGameModeChangeEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Player\GameMode $previous, Bedriox\Api\Player\GameMode $gameMode)

Typed public method.

gameMode(): Bedriox\Api\Player\GameMode

Typed public method.

setGameMode(Bedriox\Api\Player\GameMode $gameMode): void

Typed public method.

View exact source ↗