mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-12 10:38:34 +00:00
Revert "Some command fixes" aka "Some command breaks"
This reverts commit 4a8bba7a54
.
Fixes WORLDEDIT-3574.
This commit is contained in:
@ -177,8 +177,13 @@ public class SimpleDispatcher implements Dispatcher {
|
||||
|
||||
@Override
|
||||
public boolean testPermission(CommandLocals locals) {
|
||||
// checking EVERY perm here doesn't do anything but waste cpu
|
||||
return true;
|
||||
for (CommandMapping mapping : getCommands()) {
|
||||
if (mapping.getCallable().testPermission(locals)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user