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

@ -25,8 +25,8 @@
~
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>Commands</artifactId>

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)