public void disable() throws IOException {
synchronized (optOutLock) {
    if (!isOptOut()) {
      properties.setProperty("opt-out","true");
      properties.store(new FileOutputStream(configurationFile),"http://mcstats.org");
    }
    if (thread != null) {
      thread.cancel();
      thread=null;
    }
  }
}

public void disable ( ) throws IOException { synchronized ( optOutLock ) { if ( ! isOptOut ( ) ) { properties . setProperty ( "opt-out" , "true" ) ; properties . store ( new FileOutputStream ( configurationFile ) , "http://mcstats.org" ) ; } if ( thread != null ) { thread . cancel ( ) ; thread = null ; } } }
disables metrics for the server by setting " opt - out " to true in the config file and canceling the metrics task .
