|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Inheritance diagram for pocketmine\event\player\PlayerQuitEvent:
Collaboration diagram for pocketmine\event\player\PlayerQuitEvent: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.