mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-05 02:19:30 +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")
|
||||
@Override
|
||||
public boolean apply(String command) {
|
||||
command = command.toLowerCase();
|
||||
command = command.toLowerCase().replaceAll("^/([^:]*:)?", "/");
|
||||
|
||||
/*
|
||||
* denied used allow?
|
||||
|
Loading…
Reference in New Issue
Block a user