disables metrics for the server by setting `` opt-out '' to true in the config file and canceling the metrics task . concode_field_sep String REPORT_URL concode_elem_sep int REVISION concode_elem_sep String BASE_URL concode_elem_sep Plugin plugin concode_elem_sep YamlConfiguration configuration concode_elem_sep File configurationFile concode_elem_sep Object optOutLock concode_elem_sep String guid concode_elem_sep int PING_INTERVAL concode_elem_sep int taskId concode_elem_sep String CONFIG_FILE concode_field_sep void postPlugin concode_elem_sep String encode concode_elem_sep boolean isOptOut concode_elem_sep void enable concode_elem_sep boolean start concode_elem_sep boolean isMineshafterPresent concode_elem_sep void encodeDataPair
void function ( ) { synchronized ( optOutLock ) { if ( ! isOptOut ( ) ) { configuration . set ( "srini_string" , true ) ; configuration . save ( configurationFile ) ; } if ( taskId > 0 ) { this . plugin . getServer ( ) . getScheduler ( ) . cancelTask ( taskId ) ; taskId = - 1 ; } } }