mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-06 10:59:32 +01:00
Fix CommandFilter matching emoticons etc.
Fixes WORLDGUARD-3461.
This commit is contained in:
parent
8d7d32a2d2
commit
3258bff2d1
@ -64,7 +64,7 @@ public CommandFilter(@Nullable Collection<String> permitted, @Nullable Collectio
|
||||
@SuppressWarnings("StatementWithEmptyBody")
|
||||
@Override
|
||||
public boolean apply(String command) {
|
||||
command = command.toLowerCase().replaceAll("^/([^:]*:)?", "/");
|
||||
command = command.toLowerCase().replaceAll("^/([^ :]*:)?", "/");
|
||||
|
||||
/*
|
||||
* denied used allow?
|
||||
|
Loading…
Reference in New Issue
Block a user