mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +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);
|
console("[DEBUG] Loading server.properties...", true, true, 2);
|
||||||
$this->parseProperties();
|
$this->parseProperties();
|
||||||
define("DEBUG", $this->config["debug"]);
|
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;
|
$this->server->api = $this;
|
||||||
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
|
if($this->getProperty("last-update") === false or ($this->getProperty("last-update") + 3600) < time()){
|
||||||
console("[INFO] Checking for new server version");
|
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;
|
$v = (int) $v;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "protocol":
|
|
||||||
if(trim($v) == "CURRENT"){
|
|
||||||
$v = CURRENT_PROTOCOL;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case "gamemode":
|
case "gamemode":
|
||||||
case "max-players":
|
case "max-players":
|
||||||
case "port":
|
case "port":
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
#Pocket Minecraft PHP server properties
|
#Pocket Minecraft PHP server properties
|
||||||
server-name=PHP Server
|
server-name=A Minecraft Server
|
||||||
description= This is a Work in Progress custom server.
|
description=Server made using PocketMine-MP
|
||||||
motd=Welcome to PHP Server
|
motd=Welcome @username to this server!
|
||||||
invisible=false
|
invisible=false
|
||||||
port=19132
|
port=19132
|
||||||
protocol=CURRENT
|
memory-limit=512M
|
||||||
memory-limit=256M
|
|
||||||
last-update=false
|
last-update=false
|
||||||
white-list=false
|
white-list=false
|
||||||
debug=2
|
debug=2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user