Hello I was wondering this code in my teams plugin Code: $player->setNameTag($player); Lets just say my PurePerm tag is Owner> Player When this code runs I get this Player What I want is to give the Player it’s original rank. Any way to make this happen
Use: PHP: $player = $event->getPlayer();$levelName = $this->getServer()->getPluginManager()->getPlugin("PureChat")->getConfig()->get("enable-multiworld-chat") ? $player->getLevel()->getName() : null;$nametag = $this->getServer()->getPluginManager()->getPlugin("PureChat")->getNametag($player, $levelName);$player->setNameTag($nametag); I hope I've helped!