1819202122232425262728
} @Override public void handle(MCConnection conn) throws UnrecoverableException { if(conn.r.readInt() == 0) { conn.send(new S0x00(0)); } else { //PING REPLY! System.out.println(" PING REPLY!"); } }
147148149150151152153154155156157
this.conn = conn; } @Override public void run() { SPacket ping = new S0x00(1); while(true) { try { Thread.sleep(25000); conn.send(ping);