I'm trying to change entity nametag for just one player, but nothing happens PHP: $packet = new SetEntityDataPacket();$packet->entityRuntimeId = $entity->getId();$packet->metadata = [Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING, $name[0] . "\n" . TextFormat::GREEN . "Unlocked"]];$player->dataPacket($packet);
PHP: $packet = new SetEntityDataPacket();$packet->entityRuntimeId = $entity->getId();$packet->metadata = [Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING, $name[0] . "\n" . TextFormat::GREEN . "Unlocked"]];$player->dataPacket($packet);$entity->despawnFromAll();$entity->spawnToAll(); The nametag bug on 1.6 and 1.7