5859606162636465666768
bsClient.update(100); // the main work // send packet to server // every 50 tick if (++sendCounter % 50 == 0) { bsClient.sendPacket(new AllFieldTypePacket()); } // disconnect from server // after 200 tick if (sendCounter > 200) {