mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
First usage report 5 minutes after the server restart.
This commit is contained in:
parent
3e4efbb26a
commit
feaecbcd60
1 changed files with 1 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ class ServerAPI{
|
||||||
public function init(){
|
public function init(){
|
||||||
if($this->getProperty("send-usage") !== false){
|
if($this->getProperty("send-usage") !== false){
|
||||||
$this->server->schedule(36000, array($this, "sendUsage"), array(), true); //Send usage data every 30 minutes
|
$this->server->schedule(36000, array($this, "sendUsage"), array(), true); //Send usage data every 30 minutes
|
||||||
$this->sendUsage();
|
$this->server->schedule(6000, array($this, "sendUsage")); //Send the info after 5 minutes have passed
|
||||||
}
|
}
|
||||||
$this->server->init();
|
$this->server->init();
|
||||||
unregister_tick_function(array($this->server, "tick"));
|
unregister_tick_function(array($this->server, "tick"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue