3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

Do not emit errors for kicks from servers

Dieser Commit ist enthalten in:
Andrew Steinborn 2021-06-14 00:04:18 -04:00
Ursprung 2184e72e98
Commit 7b3de6f9ea

Datei anzeigen

@ -474,7 +474,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
Component disconnectReason = GsonComponentSerializer.gson().deserialize(disconnect.getReason());
String plainTextReason = PASS_THRU_TRANSLATE.serialize(disconnectReason);
if (connectedServer != null && connectedServer.serverInfo().equals(server.serverInfo())) {
logger.error("{}: kicked from server {}: {}", this, server.serverInfo().name(),
logger.info("{}: kicked from server {}: {}", this, server.serverInfo().name(),
plainTextReason);
handleConnectionException(server, disconnectReason,
Component.translatable("velocity.error.moved-to-new-server", NamedTextColor.RED,