How to check if the player joined the server? Like if the player is out of the loading screen and is on the server.
PHP: $player = $this->getServer()->getPlayerExact('player name');if(!is_null($player) && $player instanceof Player && $player->isOnline()){ //player is online}else{ //player is offline}
Just use PlayerJoinEvent. Is called when server handle SetLocalPlayerAsInitializedPacket. https://github.com/pmmp/PocketMine-...ork/mcpe/PlayerNetworkSessionAdapter.php#L296 https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/Player.php#L1077