mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-06 07:07:38 +01:00
Added {skill-lore} placeholder for SlotItem in gui/skill-list.yml acccodring to issue #854
This commit is contained in:
parent
034200f021
commit
f130f2aac9
@ -205,6 +205,13 @@ public class SkillList extends EditableInventory {
|
|||||||
for (int j = 0; j < slotLore.size(); j++)
|
for (int j = 0; j < slotLore.size(); j++)
|
||||||
lore.add(index + j, slotLore.get(j));
|
lore.add(index + j, slotLore.get(j));
|
||||||
|
|
||||||
|
index = lore.indexOf("{skill-lore}");
|
||||||
|
lore.remove(index);
|
||||||
|
List<String> skillLore = boundSkill == null ? new ArrayList() : boundSkill.calculateLore(inv.getPlayerData());
|
||||||
|
for (int j = 0; j < skillLore.size(); j++)
|
||||||
|
lore.add(index + j, skillLore.get(j));
|
||||||
|
|
||||||
|
|
||||||
for (int j = 0; j < lore.size(); j++)
|
for (int j = 0; j < lore.size(); j++)
|
||||||
lore.set(j, ChatColor.GRAY + holders.apply(inv.getPlayer(), lore.get(j)));
|
lore.set(j, ChatColor.GRAY + holders.apply(inv.getPlayer(), lore.get(j)));
|
||||||
meta.setLore(lore);
|
meta.setLore(lore);
|
||||||
|
Loading…
Reference in New Issue
Block a user