public class HologramHelper { private CuboidsPlugin plugin; public HologramHelper(CuboidsPlugin plugin) { this.plugin = plugin; } public void update(Cuboid c) { for (Hologram hologram : HologramsAPI.getHolograms(CuboidsPlugin.getInstance())) if (plugin.getCuboidManager().get(hologram.getLocation()).equals(c.getRegion().getLocation().add(0.5, 2, 0.5))) hologram.delete(); Location location = new Location(Bukkit.getWorld("world"), c.getRegion().getX() + 0.5, c.getRegion().getLocation().getBlockY() + 2, c.getRegion().getZ() + 0.5); Hologram hologram = HologramsAPI.createHologram(plugin, location); double required_progress = ConfigSettings.CUBOIDS_START_HP; double current_progress = c.getHp(); double progress_percentage = current_progress/required_progress; StringBuilder sb = new StringBuilder(); int bar_length = 15; for(int i = 0; i