mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Fixed "forwading" typo
This commit is contained in:
parent
3a110bf8b6
commit
a6ddba8d97
@ -90,7 +90,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
define("DEBUG", $this->config["debug"]);
|
define("DEBUG", $this->config["debug"]);
|
||||||
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), false, $this->getProperty("port"), $this->getProperty("server-id"));
|
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), false, $this->getProperty("port"), $this->getProperty("server-id"));
|
||||||
$this->server->api = $this;
|
$this->server->api = $this;
|
||||||
if($this->getProperty("upnp-forwading") === true ){
|
if($this->getProperty("upnp-forwarding") === true ){
|
||||||
console("[INFO] [UPnP] Trying to port forward...");
|
console("[INFO] [UPnP] Trying to port forward...");
|
||||||
UPnP_PortForward($this->getProperty("port"));
|
UPnP_PortForward($this->getProperty("port"));
|
||||||
}
|
}
|
||||||
@ -240,7 +240,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
$config = $this->config;
|
$config = $this->config;
|
||||||
$config["white-list"] = $config["white-list"] === true ? "true":"false";
|
$config["white-list"] = $config["white-list"] === true ? "true":"false";
|
||||||
$config["invisible"] = $config["invisible"] === true ? "true":"false";
|
$config["invisible"] = $config["invisible"] === true ? "true":"false";
|
||||||
$config["upnp-forwading"] = $config["upnp-forwading"] === true ? "true":"false";
|
$config["upnp-forwarding"] = $config["upnp-forwarding"] === true ? "true":"false";
|
||||||
$prop = "#Pocket Minecraft PHP server properties\r\n#".date("D M j H:i:s T Y")."\r\n";
|
$prop = "#Pocket Minecraft PHP server properties\r\n#".date("D M j H:i:s T Y")."\r\n";
|
||||||
foreach($config as $n => $v){
|
foreach($config as $n => $v){
|
||||||
$prop .= $n."=".$v."\r\n";
|
$prop .= $n."=".$v."\r\n";
|
||||||
@ -302,7 +302,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
unregister_tick_function(array($this->server, "tick"));
|
unregister_tick_function(array($this->server, "tick"));
|
||||||
$this->__destruct();
|
$this->__destruct();
|
||||||
unset($this->server);
|
unset($this->server);
|
||||||
if($this->getProperty("upnp-forwading") === true ){
|
if($this->getProperty("upnp-forwarding") === true ){
|
||||||
console("[INFO] [UPnP] Removing port forward...");
|
console("[INFO] [UPnP] Removing port forward...");
|
||||||
UPnP_RemovePortForward($this->getProperty("port"));
|
UPnP_RemovePortForward($this->getProperty("port"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user