This commit is contained in:
Brianna O'Keefe 2018-05-09 22:55:28 -04:00
parent 8eb2edbcc0
commit 2e801e060e

View File

@ -110,7 +110,7 @@ public class Hopper {
itemmetaXP.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewithxp")); itemmetaXP.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewithxp"));
ArrayList<String> loreXP = new ArrayList<>(); ArrayList<String> loreXP = new ArrayList<>();
if (nextLevel != null) if (nextLevel != null)
loreXP.add(instance.getLocale().getMessage("interface.hopper.upgradewithxplore", level.getCostExperience())); loreXP.add(instance.getLocale().getMessage("interface.hopper.upgradewithxplore", nextLevel.getCostExperience()));
else else
loreXP.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed")); loreXP.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
itemmetaXP.setLore(loreXP); itemmetaXP.setLore(loreXP);
@ -121,7 +121,7 @@ public class Hopper {
itemmetaECO.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewitheconomy")); itemmetaECO.setDisplayName(instance.getLocale().getMessage("interface.hopper.upgradewitheconomy"));
ArrayList<String> loreECO = new ArrayList<>(); ArrayList<String> loreECO = new ArrayList<>();
if (nextLevel != null) if (nextLevel != null)
loreECO.add(instance.getLocale().getMessage("interface.hopper.upgradewitheconomylore", Arconix.pl().getApi().format().formatEconomy(level.getCostEconomy()))); loreECO.add(instance.getLocale().getMessage("interface.hopper.upgradewitheconomylore", Arconix.pl().getApi().format().formatEconomy(nextLevel.getCostEconomy())));
else else
loreECO.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed")); loreECO.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
itemmetaECO.setLore(loreECO); itemmetaECO.setLore(loreECO);