I'm trying to set a color to a lore in item meta but for some reason its not working. I tried putting &3 etc... It just echos that out on the page, I tried using ChatColor but that doesn't work as its in a list. So i'm unsure how to set the lores color. Thanks.
Code:java lore.add(ChatColor.GREEN + "This lore got color"); ChatColor works for me in my plugin. Try posting your code here.
Code:java for(int i = 0; i < lore.size(); i++){ String rep = lore.get(i); rep = color + lore; lore.set(i, rep); } item_meta.setLore(lore);
This is what I do: Code:java ItemStack item = new ItemStack(Material.DIAMOND);ItemMeta meta = item.getItemMeta();meta.setDisplayName("NAME");meta.setLore(Arrays.asList("Lore 1", "Lore 2", "Lore 3", "So on and so on"));item.setItemMeta(meta); You can also make a method if you are going to be using a lot of items with ItemMeta.