Solved HIDE_ATTRIBUTES not working

Discussion in 'Spigot Plugin Development' started by Sonicboum, Feb 4, 2020.

  1. Version : 1.15.2
    Version serveur : Spigot 1.15.2
    Erreur console : Aucune erreur console


    I'm coming to you for a little problem.
    I wish to remove the attributes of an item (BANNER) so that I no longer see them.
    However despite the addition of the flag it does not work.
    Code (Text):
        private final ItemStack is;

        public ItemBuilder(final Material mat) {
            is = new ItemStack(mat);

            public ItemBuilder flaps(ItemFlag flag) {
            return this;

    Thank you for your help.​
  2. SteelPhoenix


    ItemMeta changes don't directly affect the ItemStack. You need to set the ItemStack's meta again (ItemStack#setItemMeta(ItemMeta))
    • Like Like x 1
    • Agree Agree x 1
  3. Oh yes ! Effectively! Thank you for this little error on my part.