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

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