PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (Player $player, protected Translatable|string $quitMessage, protected Translatable|string $quitReason) | |
call () | |
getEventName () | |
getPlayer () | |
getQuitMessage () | |
getQuitReason () | |
setQuitMessage (Translatable|string $quitMessage) | |
Static Public Member Functions | |
static | hasHandlers () |
Protected Attributes | |
string | $eventName = null |
Player | $player |
Called when a player disconnects from the server for any reason.
Some possible reasons include:
Definition at line 39 of file PlayerQuitEvent.php.
pocketmine\event\player\PlayerQuitEvent::__construct | ( | Player | $player, |
protected Translatable|string | $quitMessage, | ||
protected Translatable|string | $quitReason ) |
Definition at line 40 of file PlayerQuitEvent.php.
|
inherited |
|
inherited |
Definition at line 35 of file PlayerEvent.php.
pocketmine\event\player\PlayerQuitEvent::getQuitMessage | ( | ) |
Returns the quit message broadcasted to other players, e.g. "Steve left the game".
Definition at line 58 of file PlayerQuitEvent.php.
pocketmine\event\player\PlayerQuitEvent::getQuitReason | ( | ) |
Returns the disconnect reason shown in the server log and on the console.
Definition at line 65 of file PlayerQuitEvent.php.
|
staticinherited |
pocketmine\event\player\PlayerQuitEvent::setQuitMessage | ( | Translatable|string | $quitMessage | ) |
Sets the quit message broadcasted to other players.
Definition at line 51 of file PlayerQuitEvent.php.
|
protectedinherited |
|
protectedinherited |
Definition at line 33 of file PlayerEvent.php.