Skip to content

PlayerJoinEvent ​

class · pocketmine\event\player\PlayerJoinEvent · source

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

Methods ​

__construct() ​

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

getJoinMessage() ​

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

setJoinMessage() ​

php
public function setJoinMessage(\pocketmine\lang\Translatable|string $joinMessage) : void

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