Check that ServerAPI::request() works, fixes #916 [gh#916]

This commit is contained in:
Shoghi Cervantes 2013-11-23 10:17:38 +01:00
parent c7168a6c64
commit 54d37a432e

View File

@ -276,6 +276,10 @@ class ServerAPI{
}
public function init(){
if(!(self::$serverRequest instanceof PocketMinecraftServer)){
self::$serverRequest = $this->server;
}
if($this->getProperty("send-usage") !== false){
$this->server->schedule(6000, array($this, "sendUsage"), array(), true); //Send the info after 5 minutes have passed
$this->sendUsage();