Solved How to set a Lore for a Item

Discussion in 'Spigot Plugin Development' started by Th3Wh1teG0d, Jan 8, 2020.

Thread Status:
Not open for further replies.
  1. Hello, how do i set the Lore for a Item ?
     
  2. Code (Java):
    final ItemMeta meta = item.getItemMeta();
    meta.setLore(lore);
    item.setItemMeta(meta);
    or like this if you have a constant String-array

    Code (Java):
    final ItemMeta meta = item.getItemMeta();
    meta.setLore(Arrays.asList("Hello", "world", "!"));
    item.setItemMeta(meta);
     
    • Like Like x 1
    • Informative Informative x 1
    • Informative Informative x 1
  3. Mark as solved
     
Thread Status:
Not open for further replies.