From 47f7af6739537af7a4d356a08aa00eb7feefd1ed Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 20 Mar 2017 21:26:20 +0000 Subject: [PATCH] Fixed usage reporting cannot be disabled --- src/pocketmine/Server.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index ac6076821..12f8d9eb5 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -2251,7 +2251,9 @@ class Server{ } 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 = []; }