Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
Fix for checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 9, 2023
1 parent 0ab8130 commit 7d3f347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ public boolean shouldQueryShowPlugins() {
return query.shouldQueryShowPlugins();
}

private static final GsonComponentSerializer COMPONENT_SERIALIZER = GsonComponentSerializer.builder().build();
private static final GsonComponentSerializer COMPONENT_SERIALIZER
= GsonComponentSerializer.builder().build();

@Override
public net.kyori.adventure.text.Component getMotd() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -654,15 +654,15 @@ public void handleConnectionException(RegisteredServer server, Disconnect discon
if (connectedServer != null && connectedServer.getServerInfo().equals(server.getServerInfo())) {
logger.info("{}: kicked from server {}: {}", this, server.getServerInfo().getName(),
plainTextReason);
handleConnectionException(server, disconnectReason,
handleConnectionException(server, disconnectReason,
Component.empty()
.append(Component.text(
"You were kicked from the server", NamedTextColor.RED
))
.appendNewline()
.append(disconnectReason),
safe
);
);
} else {
logger.error("{}: disconnected while connecting to {}: {}", this,
server.getServerInfo().getName(), plainTextReason);
Expand Down

0 comments on commit 7d3f347

Please sign in to comment.