chore: make code style consistent

This commit is contained in:
Citymonstret 2022-06-10 10:24:50 +02:00 committed by Jason
parent a2cea2f33e
commit 89ec3fbf29
380 changed files with 479 additions and 936 deletions

View file

@ -65,5 +65,4 @@ public final class BungeeCaptionKeys {
public static @NonNull Collection<@NonNull Caption> getBungeeCaptionKeys() {
return Collections.unmodifiableCollection(RECOGNIZED_CAPTIONS);
}
}

View file

@ -75,9 +75,9 @@ public final class BungeeCommand<C> extends Command implements TabExecutor {
}
final C sender = this.manager.getCommandSenderMapper().apply(commandSender);
this.manager.executeCommand(
sender,
builder.toString()
)
sender,
builder.toString()
)
.whenComplete((commandResult, throwable) -> {
if (throwable != null) {
if (throwable instanceof CompletionException) {
@ -180,5 +180,4 @@ public final class BungeeCommand<C> extends Command implements TabExecutor {
builder.toString()
);
}
}

View file

@ -128,5 +128,4 @@ public class BungeeCommandManager<C> extends CommandManager<C> {
public @NonNull Plugin getOwningPlugin() {
return this.owningPlugin;
}
}

View file

@ -51,5 +51,4 @@ final class BungeeCommandPreprocessor<C> implements CommandPreprocessor<C> {
public void accept(final @NonNull CommandPreprocessingContext<C> context) {
context.getCommandContext().store(BungeeContextKeys.PROXY_SERVER_KEY, this.mgr.getOwningPlugin().getProxy());
}
}

View file

@ -46,5 +46,4 @@ public final class BungeeContextKeys {
private BungeeContextKeys() {
}
}

View file

@ -60,5 +60,4 @@ final class BungeePluginRegistrationHandler<C> implements CommandRegistrationHan
.registerCommand(this.bungeeCommandManager.getOwningPlugin(), bungeeCommand);
return true;
}
}

View file

@ -136,7 +136,6 @@ public final class PlayerArgument<C> extends CommandArgument<C, ProxiedPlayer> {
new LinkedList<>()
);
}
}
@ -183,7 +182,6 @@ public final class PlayerArgument<C> extends CommandArgument<C, ProxiedPlayer> {
public boolean isContextFree() {
return true;
}
}
@ -202,7 +200,5 @@ public final class PlayerArgument<C> extends CommandArgument<C, ProxiedPlayer> {
CaptionVariable.of("input", input)
);
}
}
}

View file

@ -135,7 +135,6 @@ public final class ServerArgument<C> extends CommandArgument<C, ServerInfo> {
new LinkedList<>()
);
}
}
public static final class ServerParser<C> implements ArgumentParser<C, ServerInfo> {
@ -172,7 +171,6 @@ public final class ServerArgument<C> extends CommandArgument<C, ServerInfo> {
) {
return new ArrayList<>(commandContext.<ProxyServer>get("ProxyServer").getServers().keySet());
}
}
public static final class ServerParseException extends ParserException {
@ -190,7 +188,5 @@ public final class ServerArgument<C> extends CommandArgument<C, ServerInfo> {
CaptionVariable.of("input", input)
);
}
}
}