geforkt von Mirrors/FastAsyncWorldEdit
[Experimental] Don't check for permissions on root parents.
Dieser Commit ist enthalten in:
Ursprung
42e0cceeab
Commit
59584ba10c
@ -104,7 +104,7 @@ public class SimpleDispatcher implements Dispatcher {
|
||||
@Override
|
||||
public Object call(String arguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
||||
// We have permission for this command if we have permissions for subcommands
|
||||
if (!testPermission(locals)) {
|
||||
if (parentCommands.length != 0 && !testPermission(locals)) {
|
||||
throw new CommandPermissionsException();
|
||||
}
|
||||
|
||||
|
@ -182,7 +182,7 @@ class ParametricCallable implements CommandCallable {
|
||||
@Override
|
||||
public Object call(String stringArguments, CommandLocals locals, String[] parentCommands) throws CommandException {
|
||||
// Test permission
|
||||
if (!testPermission(locals)) {
|
||||
if (parentCommands.length != 0 && !testPermission(locals)) {
|
||||
throw new CommandPermissionsException();
|
||||
}
|
||||
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren