PlayerLoginEvent
Extends PlayerEvent
Implements Cancellable
Called after the player has successfully authenticated, before it spawns. The player is on the loading screen when this is called. Cancelling this event will cause the player to be disconnected with the kick message set.
Properties
$kickMessage
php
public \pocketmine\lang\Translatable|string $kickMessageMethods
__construct()
php
public function __construct(\pocketmine\player\Player $player, \pocketmine\lang\Translatable|string $kickMessage)getKickMessage()
php
public function getKickMessage() : \pocketmine\lang\Translatable|stringsetKickMessage()
php
public function setKickMessage(\pocketmine\lang\Translatable|string $kickMessage) : void