From 3258bff2d194921c53504523f5d097d3f3544046 Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sat, 18 Apr 2015 12:01:21 -0400 Subject: [PATCH] Fix CommandFilter matching emoticons etc. Fixes WORLDGUARD-3461. --- .../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 ef3dc069..525b315f 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().replaceAll("^/([^:]*:)?", "/"); + command = command.toLowerCase().replaceAll("^/([^ :]*:)?", "/"); /* * denied used allow?