I use purechat for nametags and i modified it to have {kills} in nametags. But when i get kills, it doesn't update. Is there any way to do something that updates the kills every amount of time? Like how pureperms do it there's GroupChangeEvent
So, after you update the array, just... PHP: $player->setNameTag(str_replace("{KILLS}", $kills, $player->getNameTag()));
DataPropertyManager updates are bundled and scheduled every tick, it's already well-optimized. You should be fine.