mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-09-30 00:27:28 +02:00
Update EHopper.java
This commit is contained in:
parent
63db09c0d2
commit
189e4c5dcb
@ -113,12 +113,14 @@ public class EHopper implements Hopper {
|
||||
ItemMeta itemmeta = item.getItemMeta();
|
||||
itemmeta.setDisplayName(instance.getLocale().getMessage("interface.hopper.currentlevel", level.getLevel()));
|
||||
List<String> lore = this.level.getDescription();
|
||||
if (instance.getConfig().getBoolean("Main.Allow hopper Upgrading")) {
|
||||
lore.add("");
|
||||
if (nextLevel == null) lore.add(instance.getLocale().getMessage("interface.hopper.alreadymaxed"));
|
||||
else {
|
||||
lore.add(instance.getLocale().getMessage("interface.hopper.nextlevel", nextLevel.getLevel()));
|
||||
lore.addAll(nextLevel.getDescription());
|
||||
}
|
||||
}
|
||||
|
||||
BoostData boostData = instance.getBoostManager().getBoost(placedBy);
|
||||
if (boostData != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user