}
} catch (InvalidVersionException e) {
logger.warn("Invalid version message: \n" + Utility.dumpByteArray(event.data), e);
logger.warn("sender was: " + event.channel.socket().getRemoteSocketAddress());
stats.add("Message invalid version", 1);
MessageS2CInvalidMessage invMsg = new MessageS2CInvalidMessage(event.channel, "Invalid client version: Update client");
invMsg.setProtocolVersion(e.getProtocolVersion());
sendMessage(invMsg);
} catch (IOException e) {
logger.warn("IOException while building message:\n" + Utility.dumpByteArray(event.data), e);
logger.warn("sender was: " + event.channel.socket().getRemoteSocketAddress());
} catch (RuntimeException e) {