How can I update my kills on my name tag every time i get a kill? I use PureChat for nametags and I made a {kills} to be in PureChat config. PHP: in pureChat.phppublic function getKillsAPI(){ return KillCounter::getInstance(); } $string = str_replace("{kill}",$this->getKillsAPI()->getKills($player), $string);my pluginpublic static function getKills(Player $player) { $uuid = strtolower($player->getUniqueId()); return self::$kills[$uuid]; }
my last post was adding players to array faster than purechat setting nametag how are they duplicate this is updating nametag