@Override public void run() { // remove all player holograms on this location for (Entry<Player, List<Hologram>> entry : HolographicDisplaysInteraction.this .getHolograms().entrySet()) { Iterator<Hologram> iterator = entry.getValue().iterator(); while (iterator.hasNext()) { Hologram hologram = iterator.next(); if (hologram.getX() == holo.getX() && hologram.getY() == holo.getY() && hologram.getZ() == holo.getZ()) { hologram.delete(); iterator.remove(); } } } Location holoLocation = HolographicDisplaysInteraction.this .getHologramLocationByLocation(holo.getLocation()); if (holoLocation != null) { HolographicDisplaysInteraction.this.hologramLocations.remove(holoLocation); HolographicDisplaysInteraction.this.updateHologramDatabase(); } player.sendMessage( ChatWriter.pluginMessage(ChatColor.GREEN + BedwarsRel._l("success.holoremoved"))); }
@Override public void run() { // remove all player holograms on this location for (Entry<Player, List<Hologram>> entry : HolographicDisplaysInteraction.this .getHolograms().entrySet()) { Iterator<Hologram> iterator = entry.getValue().iterator(); while (iterator.hasNext()) { Hologram hologram = iterator.next(); if (hologram.getX() == holo.getX() && hologram.getY() == holo.getY() && hologram.getZ() == holo.getZ()) { hologram.delete(); iterator.remove(); } } } Location holoLocation = HolographicDisplaysInteraction.this .getHologramLocationByLocation(holo.getLocation()); if (holoLocation != null) { HolographicDisplaysInteraction.this.hologramLocations.remove(holoLocation); HolographicDisplaysInteraction.this.updateHologramDatabase(); } player.sendMessage( ChatWriter.pluginMessage(ChatColor.GREEN + BedwarsRel._l("success.holoremoved"))); }