I tried passing and adding xuid in updatePlayerListData() PHP: public function updatePlayerListData(UUID $uuid, int $entityId, string $name, Skin $skin, string $xuid='', array $players = null){ $pk = new PlayerListPacket(); $pk->type = PlayerListPacket::TYPE_ADD; $pk->entries[] = PlayerListEntry::createAdditionEntry($uuid, $entityId, $name, $skin, $xuid); $this->broadcastPacket($players ?? $this->playerList, $pk); } passed player's xuid by $this->getXuid() its still not showing profile of the user in pause menu.. what m i doing wrong?
That's not necessarily true - they might not have time to look at it, not have time to reply, have more important things to work on, or not be interested.
I'm sure he does, but he probably doesn't want to help you @Hipster, and neither do I. I would rather help someone who doesn't insult everybody in return...
I have no idea, but that's irrelevant because I know how to search the forums: https://forums.pmmp.io/threads/player-list-xbox.4116/
If you already tried that, then why didn't the code you showed us have anything to do with that answer? And why make a new thread instead of replying there with your code?
Here: PHP: public function onJoin(PlayerJoinEvent $event) { $player = $event->getPlayer(); $pk = new PlayerListPacket(); $pk->type = PlayerListPacket::TYPE_ADD; $pk->entries[] = PlayerListEntry::createAdditionEntry($player->getUniqueId(), $player->getId(), $player->getName(),$player->getSkin(), $player->getXuid()); foreach($this->getServer()->getOnlinePlayers() as $players){ $players->dataPacket($pk); CLOSED!
You didn't add use pocketmine\network\mcpe\protocol\PlayerListPacket; use pocketmine\network\mcpe\protocol\types\PlayerListEntry; to your plugin https://media.discordapp.net/attachments/184331712661028864/383521322245947412/Screenshot_6.png