Skip to content

PlayerLoginEvent ​

class · pocketmine\event\player\PlayerLoginEvent · source

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 $kickMessage

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\lang\Translatable|string $kickMessage)

getKickMessage() ​

php
public function getKickMessage() : \pocketmine\lang\Translatable|string

setKickMessage() ​

php
public function setKickMessage(\pocketmine\lang\Translatable|string $kickMessage) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.