mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Removed time-per-second property
This commit is contained in:
parent
6ba7486097
commit
7b8a27f7b0
@ -106,7 +106,6 @@ class ServerAPI{
|
|||||||
"max-players" => 20,
|
"max-players" => 20,
|
||||||
"allow-flight" => false,
|
"allow-flight" => false,
|
||||||
"server-type" => "normal",
|
"server-type" => "normal",
|
||||||
"time-per-second" => 20,
|
|
||||||
"gamemode" => CREATIVE,
|
"gamemode" => CREATIVE,
|
||||||
"pvp" => true,
|
"pvp" => true,
|
||||||
"difficulty" => 1,
|
"difficulty" => 1,
|
||||||
@ -300,8 +299,7 @@ class ServerAPI{
|
|||||||
}
|
}
|
||||||
if($this->server instanceof PocketMinecraftServer){
|
if($this->server instanceof PocketMinecraftServer){
|
||||||
$this->server->setType($this->getProperty("server-type"));
|
$this->server->setType($this->getProperty("server-type"));
|
||||||
$this->server->timePerSecond = $this->getProperty("time-per-second");
|
$this->server->invisible = $this->getProperty("server-invisible");
|
||||||
$this->server->invisible = $this->getProperty("invisible");
|
|
||||||
$this->server->maxClients = $this->getProperty("max-players");
|
$this->server->maxClients = $this->getProperty("max-players");
|
||||||
$this->server->description = $this->getProperty("description");
|
$this->server->description = $this->getProperty("description");
|
||||||
$this->server->motd = $this->getProperty("motd");
|
$this->server->motd = $this->getProperty("motd");
|
||||||
@ -328,10 +326,9 @@ class ServerAPI{
|
|||||||
break;
|
break;
|
||||||
case "gamemode":
|
case "gamemode":
|
||||||
case "max-players":
|
case "max-players":
|
||||||
case "port":
|
case "server-port":
|
||||||
case "debug":
|
case "debug":
|
||||||
case "difficulty":
|
case "difficulty":
|
||||||
case "time-per-second":
|
|
||||||
$v = (int) $v;
|
$v = (int) $v;
|
||||||
break;
|
break;
|
||||||
case "server-id":
|
case "server-id":
|
||||||
@ -465,7 +462,7 @@ class ServerAPI{
|
|||||||
break;
|
break;
|
||||||
case "gamemode":
|
case "gamemode":
|
||||||
case "max-players":
|
case "max-players":
|
||||||
case "port":
|
case "server-port":
|
||||||
case "debug":
|
case "debug":
|
||||||
case "difficulty":
|
case "difficulty":
|
||||||
case "time-per-second":
|
case "time-per-second":
|
||||||
|
@ -71,7 +71,7 @@ class PocketMinecraftServer{
|
|||||||
$this->clients = array();
|
$this->clients = array();
|
||||||
$this->spawn = array("x" => 128.5,"y" => 100,"z" => 128.5);
|
$this->spawn = array("x" => 128.5,"y" => 100,"z" => 128.5);
|
||||||
$this->time = 0;
|
$this->time = 0;
|
||||||
$this->timePerSecond = 10;
|
$this->timePerSecond = 20;
|
||||||
$this->tickMeasure = array_fill(0, 40, 0);
|
$this->tickMeasure = array_fill(0, 40, 0);
|
||||||
$this->setType("normal");
|
$this->setType("normal");
|
||||||
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, true, false);
|
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, true, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user