Beispiel #1
0
 public void disconnect() {
   if (bot != null) {
     System.out.println("Disconnected");
     bot.getConnectionHandler().disconnect("");
     bot.getEventManager().unregisterListener(this);
     bot = null;
     loadingState = 0;
     status("Waiting.");
     progress(0, false);
   }
 }