Solved How to hide item tags on an item?

Discussion in 'Plugin Development' started by gabrielmaennl555, Sep 25, 2017.

Thread Status:
Not open for further replies.
  1. UPDATE, FIX:

    This is the code I used to hide item tags (works!!!):

    PHP:
    ItemMeta im item.getItemMeta();
            
    //if(item.hasItemMeta() == false)
            
    {
                
    im.setDisplayName(addChatColor(name));
            }
            
    im.addItemFlags(ItemFlag.HIDE_ATTRIBUTES);
            
    item.setItemMeta(im);
    Hey, I am looking to try find a way that I could hide item tags on an item, for example the: "when in main hand: attack speed 5:, damage: 5" etc.

    Like these tags.

    Thanks in advance! hNT0ONX.png
     
    Last edited: Sep 26, 2017
  2. Offline

    Zombie_Striker

Thread Status:
Not open for further replies.

Share This Page