Remove standard lore from Potions

Discussion in 'Plugin Development' started by Kiwanga, Nov 1, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Scimiguy

    So what have you tried?

    Get the ItemMeta,
    Set the Lore to an empty List,
    Problem solved?
     
    Kiwanga and Zombie_Striker like this.
  2. Offline

    DoggyCode™

    I think he have already tried that:
    Code:
    if (lore != null) {
                 lore.clear();
                 lore.add(string);
                 meta.setLore(lore);
             }
                 meta.setLore(Arrays.asList(string));
                 item.setItemMeta(meta);
                 return item;
    Tbh, I'm not sure if you can edit potion effect-lores. As you know, it's a potion effect.
     
    Kiwanga likes this.
  3. Yeah i tried that, but it doesnt work... is there another way to get just the potion without lore or effect? Just the Item?
     
  4. Offline

    Scimiguy

  5. Offline

    khave

    The ItemFlag.HIDE_POTION_EFFECTS might be what you're looking for?
     
Thread Status:
Not open for further replies.

Share This Page