mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-04 02:52:25 +00:00
Use latest protocol always
This commit is contained in:
parent
7fef49fbfc
commit
99151981db
@ -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":
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user