Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Do not emit errors for kicks from servers
Dieser Commit ist enthalten in:
Ursprung
2184e72e98
Commit
7b3de6f9ea
@ -474,7 +474,7 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
|
|||||||
Component disconnectReason = GsonComponentSerializer.gson().deserialize(disconnect.getReason());
|
Component disconnectReason = GsonComponentSerializer.gson().deserialize(disconnect.getReason());
|
||||||
String plainTextReason = PASS_THRU_TRANSLATE.serialize(disconnectReason);
|
String plainTextReason = PASS_THRU_TRANSLATE.serialize(disconnectReason);
|
||||||
if (connectedServer != null && connectedServer.serverInfo().equals(server.serverInfo())) {
|
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);
|
plainTextReason);
|
||||||
handleConnectionException(server, disconnectReason,
|
handleConnectionException(server, disconnectReason,
|
||||||
Component.translatable("velocity.error.moved-to-new-server", NamedTextColor.RED,
|
Component.translatable("velocity.error.moved-to-new-server", NamedTextColor.RED,
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren