Please look at the README before posting. With your one sentence we can't just magically poof a message out of nowhere Provide as much information as you can. What is your code? Is there any errors showing?
public function onAdd(PlayerInteractEvent $e){ $p = $e->getPlayer(); if($e->getItem()->getId() == 388){ $nbt = new Human($p->chunk, new CompoundTag ("", [ "Pos" => new ListTag( "Pos", [ new DoubleTag("", $p->x), new DoubleTag("", $p->y + $p->getEyeHeight() - 2), new DoubleTag("", $p->z) ]), "Motion" => new ListTag ( "Motion", [ new DoubleTag("", 0), new DoubleTag("", 0), new DoubleTag("", 0) ]), "Rotation" => new ListTag("Rotation", [ new FloatTag("", $p->getYaw()), new FloatTag("", $p->getPitch()) ]), "Skin" => new CompoundTag("Skin", [ "Data" => new StringTag("Data", $p->getSkinData()) ]) ] )); $nbt->setNameTag("§f§lElf Robert"); $nbt->spawnToAll(); } }
use PHP: $nbt->setDataProperty(Entity::DATA_NAMETAG, Entity::DATA_TYPE_STRING, "YOUR ENTITY NAME");$nbt->setDataProperty(Entity::DATA_SHOW_NAMETAG, Entity::DATA_TYPE_BYTE, 1);
i think you just confused OP trying to bump it with another dev who is trying to help he is essentially asking for code so he can help
If you are using some forks or maybe PMMP (I don't know if the functions exist there), use the following code: PHP: $entity->setNameTagVisible();$entity->setNameTagAlwaysVisible(); This will show the nametag permanently.