mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-22 17:17:38 +01:00
GUIs will display item lore if set, fixes #38
This commit is contained in:
parent
4a29398fc3
commit
83b7e9e15e
@ -3376,12 +3376,14 @@ if (quest != null) {
|
||||
ItemMeta meta = display.getItemMeta();
|
||||
meta.setDisplayName(ChatColor.DARK_PURPLE + Quests.parseString(quests.get(i).getName(), npc));
|
||||
|
||||
String lore = ChatColor.DARK_GREEN + quests.get(i).description;
|
||||
LinkedList<String> lines = new LinkedList<String>();
|
||||
if (!meta.hasLore()) {
|
||||
String lore = ChatColor.DARK_GREEN + quests.get(i).description;
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user