Solved Holograms Remove

Discussion in 'Spigot Plugin Development' started by Frealy1995, May 28, 2016.

  1. 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.setCustomNameVisible (true);
            a.setCustomName(ChatColor.DARK_GRAY + "SpigotMC");
    #1 Frealy1995, May 28, 2016
    Last edited: May 28, 2016
  2. bump
    How to remove holograms
  3. Use a.remove()

    It will remove the whole invis armor stand. Or, if you'd rather just hide the tag, use a.setCustomNameVisible(false);
  4. No, I create to I delete plugin and server restart and still stand holograms
  5. 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.