mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Fixed usage reporting cannot be disabled
This commit is contained in:
parent
b7a3230f73
commit
47f7af6739
@ -2251,7 +2251,9 @@ class Server{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function sendUsage($type = SendUsageTask::TYPE_STATUS){
|
public function sendUsage($type = SendUsageTask::TYPE_STATUS){
|
||||||
$this->scheduler->scheduleAsyncTask(new SendUsageTask($this, $type, $this->uniquePlayers));
|
if($this->getProperty("anonymous-statistics.enabled", true)){
|
||||||
|
$this->scheduler->scheduleAsyncTask(new SendUsageTask($this, $type, $this->uniquePlayers));
|
||||||
|
}
|
||||||
$this->uniquePlayers = [];
|
$this->uniquePlayers = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user