So I Am Making A CustomEnchants Plugin And I Have Gotten To The Problem That I Can Only Have One Lore On A Single Item At A Time. Code: ItemStack Smelting = new ItemStack(Material.DIAMOND_PICKAXE); ItemMeta meta = Smelting.getItemMeta(); List<String> lore = new ArrayList<String>(); lore.add(ChatColor.RED + (getConfig().getString("Enchants." + ".SmeltingName"))); meta.setLore(lore); Smelting.setItemMeta(meta); p.getPlayer().getInventory().setItemInHand(Smelting);
@timtower How do I do this? Like this? Code: lore.add(p.getPlayer().getItemInHand().getItemMeta().getLore().toString());
@Albkad What are you trying to do? What you have will just print out string of all the values and qualities of the arraylist, which is most likely not what you want. If you want to add the lore to another list, use Code: List<String> lore = new ArrayList<>(ItemMeta#getLore());