12
0

Simplify SWCommand.register

Dieser Commit ist enthalten in:
jojo 2020-12-31 13:06:04 +01:00
Ursprung 45dc828d6c
Commit e999cbc2fb

Datei anzeigen

@ -48,7 +48,6 @@ public class SWCommand<T extends CommandSender> {
}
}
private SWCommand<T> instance;
private Argument<?>[] arguments;
private BiConsumer<T, ArgumentMap> executor;
private boolean lastArgRepeatable = false;
@ -56,7 +55,6 @@ public class SWCommand<T extends CommandSender> {
public SWCommand(BiConsumer<T, ArgumentMap> executor, Argument<?>... arguments) {
this.executor = executor;
this.arguments = arguments;
this.instance = this;
}
public SWCommand(BiConsumer<T, ArgumentMap> executor, boolean lastArgRepeatable, Argument<?>... arguments) {