diff --git a/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java b/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java index 9ea71d0e4..061e83955 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/commands/FlagCmd.java @@ -38,7 +38,7 @@ public class FlagCmd extends SubCommand { if (MathMan.isInteger(value)) { try { int numeric = Integer.parseInt(value); - perm.substring(0, perm.length() - value.length() - 1); + perm = perm.substring(0, perm.length() - value.length() - 1); int checkRange = PS.get().getPlatform().equalsIgnoreCase("bukkit") ? numeric : Settings.Limit.MAX_PLOTS; return player.hasPermissionRange(perm, checkRange) >= numeric;