what about creating another player class and extends pocketmine\Player? i try it and it is perfect to add functions for the player like PHP: //own functionsif($player instanceof MyPlayerClass){ $player->addJoin(); $player->setMain();}
If every plugin starts doing this then servers running multiple pugins will cause lots of issues very quickly, thats why using custom player classes is discouraged.
ah ok, i only have an own player class in one plugin called "Core", there are my network stuff and doesnt make issues xD