Weird Painting spawn (WiP)

This commit is contained in:
Shoghi Cervantes Pueyo
2013-02-05 23:25:40 +01:00
parent 0be3379720
commit 1c05455514
8 changed files with 103 additions and 10 deletions

View File

@@ -27,10 +27,15 @@ the Free Software Foundation, either version 3 of the License, or
class ServerAPI{
var $restart = false;
private static $serverRequest = false;
private $server;
private $config;
private $apiList = array();
public static function request(){
return self::$serverRequest;
}
public function run(){
$this->load();
return $this->init();
@@ -107,6 +112,7 @@ class ServerAPI{
$this->parseProperties();
define("DEBUG", $this->getProperty("debug"));
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), false, $this->getProperty("port"), $this->getProperty("server-id"), $this->getProperty("server-ip"));
self::$serverRequest = $this->server;
$this->setProperty("server-id", $this->server->serverID);
$this->server->api = $this;
if($this->getProperty("upnp-forwarding") === true){