mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Check that ServerAPI::request() works, fixes #916 [gh#916]
This commit is contained in:
parent
c7168a6c64
commit
54d37a432e
1 changed files with 4 additions and 0 deletions
|
|
@ -276,6 +276,10 @@ class ServerAPI{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init(){
|
public function init(){
|
||||||
|
if(!(self::$serverRequest instanceof PocketMinecraftServer)){
|
||||||
|
self::$serverRequest = $this->server;
|
||||||
|
}
|
||||||
|
|
||||||
if($this->getProperty("send-usage") !== false){
|
if($this->getProperty("send-usage") !== 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…
Add table
Add a link
Reference in a new issue