Hello, I create a world holograms. And How to remove? Code : Code (Text): package Events; import org.bukkit.ChatColor; import org.bukkit.entity.ArmorStand; import org.bukkit.entity.Player; import org.bukkit.event.Listener; public class Holograms implements Listener { public static void Hologgrams(Player player){ float y = 0; ArmorStand a = player.getWorld().spawn(player.getEyeLocation().add(.5, y, .5), ArmorStand.class); a.setGravity(false); a.setVisible(false); a.setCustomNameVisible (true); a.setCustomName(ChatColor.DARK_GRAY + "SpigotMC"); y-=.25; } }
Use a.remove() It will remove the whole invis armor stand. Or, if you'd rather just hide the tag, use a.setCustomNameVisible(false);
Oh. I can't tell you how to remove them from your world; I don't know how. However, to prevent it from happening again, remove them from the world in onDisable next time.