mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-23 19:16:40 +01:00
Catch command prefixes in the filter.
Fixes WORLDGUARD-3196.
This commit is contained in:
parent
c95b619974
commit
b11e2b3d11
@ -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();
|
command = command.toLowerCase().replaceAll("^/([^:]*:)?", "/");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* denied used allow?
|
* denied used allow?
|
||||||
|
Loading…
Reference in New Issue
Block a user