I want to display only players which are in the same world as player which has opened the tab (Open spoiler to see the pic.) Spoiler Is it possible? And if yes, then how?
I didn't get you, you want to display player in a world and remove the ones that arnt in that world from that list? Well if so I don't think, that area is where the complete players of a server is stated correct me if I am wrong. Kind regards, /shar
Well I don't think its possible to hide a player in a world from that menu or whatever you call it. Correct me if I am wrong tho I am sure its not possible. Thanks/ Kind regards, /shar
it is possible through getting online players https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Server.php#L695 removing them with https://github.com/pmmp/PocketMine-...etwork/mcpe/protocol/PlayerListPacket.php#L35 like in https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Server.php#L2279-L2285 (data only https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Server.php#L2271) and then adding players in the world back with https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Server.php#L2264. Or simply removing players not in the world with https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/Server.php#L2271.