Skip to content

MineDeepRock/private_name_tag

Repository files navigation

PrivateNameTag

plugin_data\PrivateNameTag\NameTag.geo.jsonNameTag.skinを入れてください

set

use private_name_tag\models\PrivateNameTag;

$nameTag = new PrivateNameTag($owner, $owner->getName(), $viewers);
$nameTag->set();

updateNameTag

use private_name_tag\models\PrivateNameTag;

$nameTag = PrivateNameTag::get($player);
$nameTag->updateNameTag($player->getName() . " [LEVEL]");

updateViewers

use private_name_tag\models\PrivateNameTag;

$nameTag = PrivateNameTag::get($player);
$nameTag->updateViewers($viewers);

remove

use private_name_tag\models\PrivateNameTag;

$nameTag = PrivateNameTag::get($player);
$nameTag->remove();