check the permissions every 20 ticks and swap display content accordingly

This commit is contained in:
2023-07-21 23:49:15 +02:00
parent 78eea4ae30
commit df087c7604
2 changed files with 27 additions and 0 deletions
@@ -13,7 +13,9 @@ import org.bukkit.event.Listener;
import org.bukkit.event.player.*;
import org.purpurmc.purpur.event.entity.EntityTeleportHinderedEvent;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class NameplateManager implements Listener {
@@ -99,4 +101,8 @@ public class NameplateManager implements Listener {
}
public Map<UUID, Nameplate> getNameplates() {
return Collections.unmodifiableMap(nameplates);
}
}