Do not save server HexID each time server connects to the login.

This commit is contained in:
MobiusDev
2016-12-11 07:54:20 +00:00
parent 98165f1983
commit 684ffa6fcb

View File

@@ -245,7 +245,7 @@ public class LoginServerThread extends Thread
final AuthResponse aresp = new AuthResponse(incoming); final AuthResponse aresp = new AuthResponse(incoming);
final int serverID = aresp.getServerId(); final int serverID = aresp.getServerId();
_serverName = aresp.getServerName(); _serverName = aresp.getServerName();
Config.saveHexid(serverID, hexToString(_hexID)); // Config.saveHexid(serverID, hexToString(_hexID));
LOGGER.info(getClass().getSimpleName() + ": Registered on login as Server " + serverID + ": " + _serverName); LOGGER.info(getClass().getSimpleName() + ": Registered on login as Server " + serverID + ": " + _serverName);
final ServerStatus st = new ServerStatus(); final ServerStatus st = new ServerStatus();
if (Config.SERVER_LIST_BRACKET) if (Config.SERVER_LIST_BRACKET)
@@ -529,16 +529,6 @@ public class LoginServerThread extends Thread
} }
} }
/**
* Hex to string.
* @param hex the hex value
* @return the hex value as string
*/
private String hexToString(byte[] hex)
{
return new BigInteger(hex).toString(16);
}
/** /**
* Kick player for the given account. * Kick player for the given account.
* @param account the account * @param account the account