return;
} else if (message.getProtocolVersion() > VanillaPlugin.MINECRAFT_PROTOCOL_ID) {
session.disconnect(VanillaConfiguration.OUTDATED_SERVER_MESSAGE.getString());
return;
}
session.getDataMap().put(VanillaProtocol.CHUNK_NET_CACHE, new ChunkNetCache());
Session.State state = session.getState();
if (state == Session.State.EXCHANGE_HANDSHAKE) {
session.getDataMap().put(VanillaProtocol.LOGIN_TIME, System.currentTimeMillis());
session.getDataMap().put(VanillaProtocol.HANDSHAKE_USERNAME, message.getUsername());
session.setState(Session.State.EXCHANGE_ENCRYPTION);