///////////////////////////////////////////////////////////
WK.,q>#
// DeJaved by mDeJava v1.0. Copyright 1999 MoleSoftware. //
WK.,q>#
// To download last version of this software: //
WK.,q>#
// http://molesoftware.hypermatr.net //
WK.,q>#
// e-mail:[email protected] //
WK.,q>#
///////////////////////////////////////////////////////////
package net.sf.l2j.gameserver.clientpackets;
import java.io.IOException;
WK.,q>#
import java.io.PrintStream;
WK.,q>#
import net.sf.l2j.gameserver.ClientThread;
WK.,q>#
import net.sf.l2j.gameserver.Connection;
WK.,q>#
import net.sf.l2j.gameserver.serverpackets.KeyPacket;
// Referenced classes of package net.sf.l2j.gameserver.clientpackets:
WK.,q>#
// ClientBasePacket
public class ProtocolVersion extends ClientBasePacket
WK.,q>#
{
public ProtocolVersion(byte rawPacket[], ClientThread client)
WK.,q>#
throws IOException
WK.,q>#
{
WK.,q>#
super(rawPacket);
WK.,q>#
long version = readD();
WK.,q>#
System.out.println("ProtocolVersion");
WK.,q>#
System.out.println("Revision:" + version);
WK.,q>#
if(version == 377L);
WK.,q>#
Connection con = client.getConnection();
WK.,q>#
KeyPacket pk = new KeyPacket();
WK.,q>#
pk.setKey(con.getCryptKey());
WK.,q>#
con.sendPacket(pk);
WK.,q>#
con.activateCryptKey();
WK.,q>#
}
WK.,q>#
}
WK.,q>#
0.1