Fix CommandFilter matching emoticons etc.

Fixes WORLDGUARD-3461.
This commit is contained in:
Wizjany 2015-04-18 12:01:21 -04:00
parent 8d7d32a2d2
commit 3258bff2d1

View File

@ -64,7 +64,7 @@ public CommandFilter(@Nullable Collection<String> permitted, @Nullable Collectio
@SuppressWarnings("StatementWithEmptyBody") @SuppressWarnings("StatementWithEmptyBody")
@Override @Override
public boolean apply(String command) { public boolean apply(String command) {
command = command.toLowerCase().replaceAll("^/([^:]*:)?", "/"); command = command.toLowerCase().replaceAll("^/([^ :]*:)?", "/");
/* /*
* denied used allow? * denied used allow?