mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 04:41:40 +01:00
Formatting
This commit is contained in:
parent
5c2166fc93
commit
c0beba7467
@ -241,7 +241,6 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
||||
CompositeCommand cmd = getCommandFromArgs(args);
|
||||
String cmdLabel = (cmd.subCommandLevel > 0) ? args[cmd.subCommandLevel-1] : label;
|
||||
List<String> cmdArgs = Arrays.asList(args).subList(cmd.subCommandLevel, args.length);
|
||||
// Call
|
||||
return cmd.call(user, cmdLabel, cmdArgs);
|
||||
}
|
||||
|
||||
@ -261,13 +260,11 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi
|
||||
user.sendMessage("general.errors.use-in-game");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.runPermissionCheck(user))
|
||||
{
|
||||
// Error message is displayed by permission check.
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set the user's addon context
|
||||
user.setAddon(addon);
|
||||
// Execute and trim args
|
||||
|
Loading…
Reference in New Issue
Block a user