PocketMine-MP 5.23.3 git-fbaa125d0ce21ffef98fc1630881a92bedfbaa73
|
Public Member Functions | |
__construct (Player $player, protected Translatable|string $disconnectReason, protected Translatable|string $quitMessage, protected Translatable|string|null $disconnectScreenMessage) | |
call () | |
getEventName () | |
getPlayer () | |
getQuitMessage () | |
isCancelled () | |
setQuitMessage (Translatable|string $quitMessage) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Player | $player |
Called when a player is kicked (forcibly disconnected) from the server, e.g. if an operator used /kick.
Definition at line 34 of file PlayerKickEvent.php.
pocketmine\event\player\PlayerKickEvent::__construct | ( | Player | $player, |
protected Translatable|string | $disconnectReason, | ||
protected Translatable|string | $quitMessage, | ||
protected Translatable|string|null | $disconnectScreenMessage ) |
Definition at line 38 of file PlayerKickEvent.php.
|
inherited |
|
inherited |
Definition at line 35 of file PlayerEvent.php.
pocketmine\event\player\PlayerKickEvent::getQuitMessage | ( | ) |
Returns the quit message broadcasted to other players, e.g. "Steve left the game".
Definition at line 57 of file PlayerKickEvent.php.
|
staticinherited |
|
inherited |
Returns whether this instance of the event is currently cancelled.
If it is cancelled, only downstream handlers that declare @handleCancelled
will be called with this event.
pocketmine\event\player\PlayerKickEvent::setQuitMessage | ( | Translatable|string | $quitMessage | ) |
Sets the quit message broadcasted to other players.
Definition at line 50 of file PlayerKickEvent.php.
|
protectedinherited |
|
protectedinherited |
Definition at line 33 of file PlayerEvent.php.