I have this issue on all my coding NPC plugin! And i don't know waht this error means.. Like, i never was whit a problem like this, please help me, i need this so much! Issue: 29.06 17:36:54 [Server] Server thread/CRITICAL Could not pass event 'pocketmine\event\player\PlayerJoinEvent' to 'NPC2 v2': Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket:utEntityUniqueId() must be of the type integer, null given, called in phar:///custom7.phar/src/pocketmine/network/mcpe/protocol/AddPlayerPacket.php on line 74 on lewbr\npc\Main 29.06 17:36:54 [Server] Server thread/CRITICAL TypeError: "Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket:utEntityUniqueId() must be of the type integer, null given, called in phar:///custom7.phar/src/pocketmine/network/mcpe/protocol/AddPlayerPacket.php on line 74" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 267
it means exactly what it says. https://github.com/pmmp/PocketMine-...network/mcpe/protocol/AddPlayerPacket.php#L40 You need to make sure that field is declared as something other than null. use the player's entity runtime Id