From 740de4932ba14b388ee9c548b2daea729a2596ee Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 7 Jun 2018 12:30:39 +1000 Subject: [PATCH] Fix flag perm check --- .../java/com/intellectualcrafters/plot/commands/FlagCmd.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;