Removed time-per-second property

This commit is contained in:
Shoghi Cervantes Pueyo 2013-04-09 19:04:01 +02:00
parent 6ba7486097
commit 7b8a27f7b0
2 changed files with 4 additions and 7 deletions

View File

@ -106,7 +106,6 @@ class ServerAPI{
"max-players" => 20,
"allow-flight" => false,
"server-type" => "normal",
"time-per-second" => 20,
"gamemode" => CREATIVE,
"pvp" => true,
"difficulty" => 1,
@ -300,8 +299,7 @@ class ServerAPI{
}
if($this->server instanceof PocketMinecraftServer){
$this->server->setType($this->getProperty("server-type"));
$this->server->timePerSecond = $this->getProperty("time-per-second");
$this->server->invisible = $this->getProperty("invisible");
$this->server->invisible = $this->getProperty("server-invisible");
$this->server->maxClients = $this->getProperty("max-players");
$this->server->description = $this->getProperty("description");
$this->server->motd = $this->getProperty("motd");
@ -328,10 +326,9 @@ class ServerAPI{
break;
case "gamemode":
case "max-players":
case "port":
case "server-port":
case "debug":
case "difficulty":
case "time-per-second":
$v = (int) $v;
break;
case "server-id":
@ -465,7 +462,7 @@ class ServerAPI{
break;
case "gamemode":
case "max-players":
case "port":
case "server-port":
case "debug":
case "difficulty":
case "time-per-second":

View File

@ -71,7 +71,7 @@ class PocketMinecraftServer{
$this->clients = array();
$this->spawn = array("x" => 128.5,"y" => 100,"z" => 128.5);
$this->time = 0;
$this->timePerSecond = 10;
$this->timePerSecond = 20;
$this->tickMeasure = array_fill(0, 40, 0);
$this->setType("normal");
$this->interface = new MinecraftInterface("255.255.255.255", $this->port, true, false);