Fixed not being able to disable stats reporting using command line options

This commit is contained in:
Dylan K. Taylor 2017-09-21 17:14:44 +01:00
parent c6670b2e74
commit d7091f4460

View File

@ -2387,7 +2387,7 @@ class Server{
}
public function sendUsage($type = SendUsageTask::TYPE_STATUS){
if($this->getProperty("anonymous-statistics.enabled", true)){
if((bool) $this->getProperty("anonymous-statistics.enabled", true)){
$this->scheduler->scheduleAsyncTask(new SendUsageTask($this, $type, $this->uniquePlayers));
}
$this->uniquePlayers = [];