From d7091f446036a3c240195d99ddf4f6ddcf56c0c0 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 21 Sep 2017 17:14:44 +0100 Subject: [PATCH] Fixed not being able to disable stats reporting using command line options --- src/pocketmine/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index b484f3bf2..e98b36c3d 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -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 = [];