Better event system

This commit is contained in:
Shoghi Cervantes
2013-06-07 16:15:19 +02:00
parent e7c6a0c817
commit 05ae6cdef3
3 changed files with 18 additions and 13 deletions

View File

@@ -95,8 +95,8 @@ class ServerAPI{
$this->config->remove("invisible");
}
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), ($seed = $this->getProperty("level-seed")) != "" ? (int) $seed:false, $this->getProperty("server-port"), ($ip = $this->getProperty("server-ip")) != "" ? $ip:"0.0.0.0");
self::$serverRequest = $this->server;
$this->server->api = $this;
self::$serverRequest = $this->server;
if($this->getProperty("upnp-forwarding") === true){
console("[INFO] [UPnP] Trying to port forward...");