Change some wording

This commit is contained in:
s809
2024-02-24 21:37:54 +05:00
parent 2e6c0ba356
commit d966697ecb
2 changed files with 3 additions and 3 deletions
@@ -163,7 +163,7 @@ public class RemotePlayerConnectionHandler implements Closeable
IConnection connection = this.playersByConnection.inverse().remove(dhPlayer);
if (connection != null)
{
connection.disconnect("You have been disconnected.");
connection.disconnect("You have logged out.");
}
}
@@ -99,11 +99,11 @@ public class NetworkClient extends NetworkEventSource implements IConnection, Au
this.registerHandlers();
}
private void registerHandlers()
private void registerHandlers()
{
this.registerHandler(CloseReasonMessage.class, closeReasonMessage ->
{
LOGGER.warn(closeReasonMessage.reason);
LOGGER.warn("Received disconnect reason: " + closeReasonMessage.reason);
this.connectionState.set(EConnectionState.GOT_CLOSE_REASON);
});