AuthResponse aresp = new AuthResponse(decrypt);
_serverID = aresp.getServerId();
_serverName = aresp.getServerName();
Config.saveHexid(_serverID, hexToString(_hexID));
_log.info("Registered on login as Server " + _serverID + " : " + _serverName);
ServerStatus st = new ServerStatus();
if(Config.SERVER_LIST_BRACKET)
{
st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET, ServerStatus.ON);
}
else
{
st.addAttribute(ServerStatus.SERVER_LIST_SQUARE_BRACKET, ServerStatus.OFF);
}
if(Config.SERVER_LIST_CLOCK)
{
st.addAttribute(ServerStatus.SERVER_LIST_CLOCK, ServerStatus.ON);
}
else
{
st.addAttribute(ServerStatus.SERVER_LIST_CLOCK, ServerStatus.OFF);
}
if(Config.SERVER_LIST_TESTSERVER)
{
st.addAttribute(ServerStatus.TEST_SERVER, ServerStatus.ON);
}
else
{
st.addAttribute(ServerStatus.TEST_SERVER, ServerStatus.OFF);
}
if(Config.SERVER_GMONLY)
{
st.addAttribute(ServerStatus.SERVER_LIST_STATUS, ServerStatus.STATUS_GM_ONLY);
}
else
{
st.addAttribute(ServerStatus.SERVER_LIST_STATUS, ServerStatus.STATUS_AUTO);
}
sendPacket(st);
if(L2World.getAllPlayersCount() > 0)
{
FastList<String> playerList = new FastList<String>();