From b11e2b3d1126363d589cd333d051df98434e1b7a Mon Sep 17 00:00:00 2001 From: sk89q Date: Sun, 4 Jan 2015 17:56:00 -0800 Subject: [PATCH] Catch command prefixes in the filter. Fixes WORLDGUARD-3196. --- .../java/com/sk89q/worldguard/util/command/CommandFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldguard/util/command/CommandFilter.java b/src/main/java/com/sk89q/worldguard/util/command/CommandFilter.java index faa0f4b1..ef3dc069 100644 --- a/src/main/java/com/sk89q/worldguard/util/command/CommandFilter.java +++ b/src/main/java/com/sk89q/worldguard/util/command/CommandFilter.java @@ -64,7 +64,7 @@ public CommandFilter(@Nullable Collection permitted, @Nullable Collectio @SuppressWarnings("StatementWithEmptyBody") @Override public boolean apply(String command) { - command = command.toLowerCase(); + command = command.toLowerCase().replaceAll("^/([^:]*:)?", "/"); /* * denied used allow?