208209210211212213214215216217218
primary.start(); BNCSConnection c = primary; for(int i = 2; i <= numBots; i++) { //Wait for the previous bot to connect while(!c.canSendChat()) Thread.sleep(20); //Wait an additional 500ms Thread.sleep(500);