Enchantment Hider

Discussion in 'Spigot Help' started by Fazer, Mar 12, 2014.

  1. Can anyone help me hide the enchantment name on an item? If you can please reply. It would be really appreciated.

    Screenshot (5).png
     
  2. you can hide it by using flags in 1,8
     
  3. use this code(Dont enchant the Item before):

    Code (Text):
        public static org.bukkit.inventory.ItemStack addGlow(
                org.bukkit.inventory.ItemStack item) {
            net.minecraft.server.v1_8_R3.ItemStack nmsStack = org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack
                    .asNMSCopy(item);
            NBTTagCompound tag = null;
            if (!nmsStack.hasTag()) {
                tag = new NBTTagCompound();
                nmsStack.setTag(tag);
            }
            if (tag == null) {
                tag = nmsStack.getTag();
            }
            net.minecraft.server.v1_8_R3.NBTTagList ench = new net.minecraft.server.v1_8_R3.NBTTagList();
            tag.set("ench", ench);
            nmsStack.setTag(tag);
            return org.bukkit.craftbukkit.v1_8_R3.inventory.CraftItemStack.asCraftMirror(nmsStack);
        }