Reformat.

This commit is contained in:
Alexander Söderberg 2020-09-06 18:06:08 +02:00
parent 3ec124aac4
commit a5748444ce
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
9 changed files with 48 additions and 26 deletions

View file

@ -109,7 +109,8 @@ public abstract class CommandManager<C extends CommandSender> {
this.commandSyntaxFormatter = commandSyntaxFormatter;
}
@Nonnull protected CommandRegistrationHandler getCommandRegistrationHandler() {
@Nonnull
protected CommandRegistrationHandler getCommandRegistrationHandler() {
return this.commandRegistrationHandler;
}

View file

@ -94,7 +94,8 @@ public class CommandTree<C extends CommandSender> {
/* Not enough arguments */
throw new InvalidSyntaxException(this.commandManager.getCommandSyntaxFormatter()
.apply(Objects.requireNonNull(
child.getValue().getOwningCommand()).getComponents()),
child.getValue().getOwningCommand())
.getComponents()),
commandContext.getCommandSender(), this.getChain(root)
.stream()
.map(Node::getValue)