Change some wording
This commit is contained in:
+1
-1
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user