Potion with no effect without lore

Discussion in 'Plugin Development' started by opd02, Apr 8, 2020.

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

    opd02

  2. Offline

    wand555

    Maybe it falls under ItemFlag.HIDE_POTION_EFFECTS
     
  3. Offline

    opd02

    That did it! Thanks!
    Code:
                ItemStack bottle1 = new ItemStack(Material.POTION);
                ItemMeta b1m = bottle1.getItemMeta();
                b1m.addItemFlags(ItemFlag.HIDE_POTION_EFFECTS);
     
Thread Status:
Not open for further replies.

Share This Page