I mean just like in FPS games, you're able to see your Teammate's Nametag, but can't see Enemy's Nametag. Is there any way to do this in PocketMine ?
No. Just no. PHP: $entity->setNameTagVisible($value) Or if you just want it for certain players, create a SetEntityDataPacket with the player's entity ID and name visibility flag set to false (0), Spoiler: How to do that PHP: $pk = new SetEntityDataPacket();$pk->eid = $playerWhoseNameWeWantToHide->getId();$pk->metadata = [Entity::DATA_SHOW_NAMETAG => 0];$player->dataPacket($pk); And please don't just copy and paste the code or it won't work.
But your "method" doesnt hide the nametag you see the nametag but no letters or something else only a space...