BedrioxDOCUMENTATION
API CLASS

PlayerKickEvent

Cancellable server-initiated kick; a normal transport timeout does not fire this event.

Bedriox\Api\Event\Player\PlayerKickEvent
classBedriox\Api\Event\Player

Public methods

__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Event\Player\PlayerKickCause $cause, string $reason, ?string $quitMessage, ?string $disconnectScreenMessage, ?string $actor = null)

Typed public method.

reason(): string

Typed public method.

quitMessage(): ?string

Typed public method.

disconnectScreenMessage(): ?string

Typed public method.

setReason(string $reason): void

Typed public method.

setQuitMessage(?string $message): void

Typed public method.

setDisconnectScreenMessage(?string $message): void

Typed public method.

View exact source ↗