diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandGoCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandGoCommand.java index 6f6652f53..37e1719e0 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandGoCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandGoCommand.java @@ -33,7 +33,7 @@ public class IslandGoCommand extends CompositeCommand { } if (!args.isEmpty() && NumberUtils.isDigits(args.get(0))) { int homeValue = Integer.parseInt(args.get(0)); - int maxHomes = user.getPermissionValue("island.maxhomes", getIWM().getMaxHomes(getWorld())); + int maxHomes = user.getPermissionValue(getPermissionPrefix() + "island.maxhomes", getIWM().getMaxHomes(getWorld())); if (homeValue > 1 && homeValue <= maxHomes) { getIslands().homeTeleport(getWorld(), user.getPlayer(), homeValue); user.sendMessage("commands.island.go.tip", TextVariables.LABEL, getTopLabel()); diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandSethomeCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandSethomeCommand.java index 596c02ccb..59ca3a4e5 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandSethomeCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandSethomeCommand.java @@ -39,7 +39,7 @@ public class IslandSethomeCommand extends CompositeCommand { user.sendMessage("commands.island.sethome.home-set"); } else { // Dynamic home sizes with permissions - int maxHomes = user.getPermissionValue("island.maxhomes", getIWM().getMaxHomes(getWorld())); + int maxHomes = user.getPermissionValue(getPermissionPrefix() + "island.maxhomes", getIWM().getMaxHomes(getWorld())); if (maxHomes > 1) { // Check the number given is a number int number;