Fixed usage reporting cannot be disabled

This commit is contained in:
Dylan K. Taylor 2017-03-20 21:26:20 +00:00
parent b7a3230f73
commit 47f7af6739

View File

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