Reformat.
This commit is contained in:
parent
3ec124aac4
commit
a5748444ce
9 changed files with 48 additions and 26 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue