Skip to content

Commit

Permalink
More condition for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume-Lebegue committed May 27, 2020
1 parent a598394 commit 51e23c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main/java/world/bentobox/upgrades/UpgradesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ public Map<String, Integer> getEntityLimitsUpgradeInfos(EntityType ent, int limi
return null;
}

this.addon.logWarning("selected maxtier: " + limitsUpgradeTier.getMaxLevel());

Map<String, Integer> info = new HashMap<>();

info.put("islandMinLevel", (int) limitsUpgradeTier.calculateIslandMinLevel(limitsLevel, islandLevel, numberPeople));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ public boolean canExecute(User user, String label, List<String> args) {
@Override
public boolean execute(User user, String label, List<String> args) {
if (args.size() == 0) {
if (getIslands().getIsland(getWorld(), user) == null) {
user.sendMessage("general.errors.no-island");
return false;
}
new Panel(this.addon).showPanel(user);
return true;
}
Expand Down

0 comments on commit 51e23c6

Please sign in to comment.