PHP: //You need to set your metadate's$dataProperties = [self::DATA_FLAGS => [self::DATA_TYPE_LONG, 0],self::DATA_AIR => [self::DATA_TYPE_SHORT, 400],self::DATA_MAX_AIR => [self::DATA_TYPE_SHORT, 400],self::DATA_NAMETAG => [self::DATA_TYPE_STRING, "Put your nametag here! :)"],self::DATA_LEAD_HOLDER_EID => [self::DATA_TYPE_LONG, -1],self::DATA_SCALE => [self::DATA_TYPE_FLOAT, 1]];$entity->sendData($player, $dataProperties); Also maybe PMMP have a method to get metadate's.
Sending the default data properties isn't required, you can just send the data properties you want to update (in this case, it's just the entity nametag) PHP: $player->sendData($player2, [ Entity::DATA_NAMETAG => [Entity::DATA_TYPE_STRING, "Some nametag"]]);