mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-01 11:11:21 +01:00
Added {upgrade_level} as lore placeholder
This commit is contained in:
parent
464d4784e5
commit
68b4be0fdf
@ -65,6 +65,9 @@ public class UpgradeStat extends ItemStat<UpgradeData, UpgradeData> implements C
|
||||
// Show in lore
|
||||
item.addItemTag(getAppliedNBT(data));
|
||||
|
||||
// Special placeholder
|
||||
item.getLore().registerPlaceholder("upgrade_level", String.valueOf(data.getLevel()));
|
||||
|
||||
// Show in lore
|
||||
if (data.getMaxUpgrades() > 0)
|
||||
item.getLore().insert(getPath(),
|
||||
|
@ -91,7 +91,7 @@ item-upgrading:
|
||||
# Whether to display in Item Name or Lore
|
||||
# Disable if item renaming is available to players.
|
||||
# If set to 'false', remember to include
|
||||
# %upgrade_level% in your item lore.
|
||||
# {upgrade_level} in your item lore.
|
||||
display-in-name: true
|
||||
|
||||
# Whether or not to display which
|
||||
|
Loading…
Reference in New Issue
Block a user