mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 12:46:18 +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();
|
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user