GUIs will display item lore if set, fixes #38

This commit is contained in:
HappyPikachu 2015-03-04 17:36:30 -05:00
parent 4a29398fc3
commit 83b7e9e15e

View File

@ -3376,12 +3376,14 @@ if (quest != null) {
ItemMeta meta = display.getItemMeta(); ItemMeta meta = display.getItemMeta();
meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc)); meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc));
if (!meta.hasLore()) {
String lore = ChatColor.DARK_GREEN + quests.get(i).description; String lore = ChatColor.DARK_GREEN + quests.get(i).description;
LinkedList<String> lines = new LinkedList<String>(); LinkedList<String> lines = new LinkedList<String>();
lines = MiscUtil.makeLines(lore, " ", 100); lines = MiscUtil.makeLines(lore, " ", 100);
meta.setLore(lines); meta.setLore(lines);
}
display.setItemMeta(meta); display.setItemMeta(meta);