mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
send-usage is now an advanced property :P
This commit is contained in:
parent
378e9c8720
commit
13274ebefa
@ -138,7 +138,6 @@ class ServerAPI{
|
|||||||
"enable-query" => true,
|
"enable-query" => true,
|
||||||
"enable-rcon" => false,
|
"enable-rcon" => false,
|
||||||
"rcon.password" => substr(base64_encode(Utils::getRandomBytes(20, false)), 3, 10),
|
"rcon.password" => substr(base64_encode(Utils::getRandomBytes(20, false)), 3, 10),
|
||||||
"send-usage" => true,
|
|
||||||
"auto-save" => true,
|
"auto-save" => true,
|
||||||
));
|
));
|
||||||
|
|
||||||
@ -343,7 +342,7 @@ class ServerAPI{
|
|||||||
self::$serverRequest = $this->server;
|
self::$serverRequest = $this->server;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->getProperty("send-usage") !== false){
|
if($this->getProperty("send-usage", true) !== false){
|
||||||
$this->server->schedule(6000, array($this, "sendUsage"), array(), true); //Send the info after 5 minutes have passed
|
$this->server->schedule(6000, array($this, "sendUsage"), array(), true); //Send the info after 5 minutes have passed
|
||||||
$this->sendUsage();
|
$this->sendUsage();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user