}
@Override
public void runImpl()
{
L2GameClient _client = getClient();
if(_version == -2)
{
return;
}
else if((this._version == 65533) || (this._version == -3))
{
_client.close(new SendStatus());
return;
}
else if(_version < Config.MIN_PROTOCOL_REVISION || _version > Config.MAX_PROTOCOL_REVISION)
{
_log.info("Client Protocol Revision: " + _version + ", client IP: " + _client.getIpAddr() + " not allowed. Supported protocols: from " + Config.MIN_PROTOCOL_REVISION + " to " + Config.MAX_PROTOCOL_REVISION + ". Closing connection.");
_client.close(wrong_protocol);
return;
}
_client.setRevision((int) _version);
for(int i = 0; i < 256; i++)
{
_data[i] ^= _xorB[i & 7];
}
_client.client_lang = _data[255];