PlayerJoinEvent
Extends PlayerEvent
Called when the player spawns in the world after logging in, when they first see the terrain.
Note: A lot of data is sent to the player between login and this event. Disconnecting the player during this event will cause this data to be wasted. Prefer disconnecting at login-time if possible to minimize bandwidth wastage.
Properties
$joinMessage
php
public \pocketmine\lang\Translatable|string $joinMessageMethods
__construct()
php
public function __construct(\pocketmine\player\Player $player, \pocketmine\lang\Translatable|string $joinMessage)getJoinMessage()
php
public function getJoinMessage() : \pocketmine\lang\Translatable|stringsetJoinMessage()
php
public function setJoinMessage(\pocketmine\lang\Translatable|string $joinMessage) : void