Use latest protocol always

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-23 16:46:08 +01:00
parent 7fef49fbfc
commit 99151981db
2 changed files with 5 additions and 11 deletions

View File

@ -90,7 +90,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
console("[DEBUG] Loading server.properties...", true, true, 2);
$this->parseProperties();
define("DEBUG", $this->config["debug"]);
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), $this->getProperty("seed"), $this->getProperty("protocol"), $this->getProperty("port"), $this->getProperty("server-id"));
$this->server = new PocketMinecraftServer($this->getProperty("server-name"), $this->getProperty("gamemode"), $this->getProperty("seed"), CURRENT_PROTOCOL, $this->getProperty("port"), $this->getProperty("server-id"));
$this->server->api = $this;
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
console("[INFO] Checking for new server version");
@ -299,11 +299,6 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
$v = (int) $v;
}
break;
case "protocol":
if(trim($v) == "CURRENT"){
$v = CURRENT_PROTOCOL;
break;
}
case "gamemode":
case "max-players":
case "port":

View File

@ -1,11 +1,10 @@
#Pocket Minecraft PHP server properties
server-name=PHP Server
description= This is a Work in Progress custom server.
motd=Welcome to PHP Server
server-name=A Minecraft Server
description=Server made using PocketMine-MP
motd=Welcome @username to this server!
invisible=false
port=19132
protocol=CURRENT
memory-limit=256M
memory-limit=512M
last-update=false
white-list=false
debug=2