mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +00:00
Moved max-chunks-per-second to server.properties, increased to 8
This commit is contained in:
parent
7e174eac5a
commit
d925640f03
@ -134,8 +134,12 @@ class ServerAPI{
|
|||||||
));
|
));
|
||||||
|
|
||||||
$this->parseProperties();
|
$this->parseProperties();
|
||||||
|
|
||||||
|
//Load advanced properties
|
||||||
define("DEBUG", $this->getProperty("debug", 1));
|
define("DEBUG", $this->getProperty("debug", 1));
|
||||||
define("ADVANCED_CACHE", $this->getProperty("enable-advanced-cache", false));
|
define("ADVANCED_CACHE", $this->getProperty("enable-advanced-cache", false));
|
||||||
|
define("MAX_CHUNK_RATE", 20 / $this->getProperty("max-chunks-per-second", 8)); //Default rate ~512 kB/s
|
||||||
|
|
||||||
if($this->getProperty("port") !== false){
|
if($this->getProperty("port") !== false){
|
||||||
$this->setProperty("server-port", $this->getProperty("port"));
|
$this->setProperty("server-port", $this->getProperty("port"));
|
||||||
$this->config->remove("port");
|
$this->config->remove("port");
|
||||||
|
@ -31,7 +31,6 @@ define("VIEWER", 3);
|
|||||||
|
|
||||||
|
|
||||||
//Players
|
//Players
|
||||||
define("MAX_CHUNK_RATE", 20 / arg("max-chunks-per-second", 4)); //Default rate ~256 kB/s
|
|
||||||
define("PLAYER_MAX_QUEUE", 1024);
|
define("PLAYER_MAX_QUEUE", 1024);
|
||||||
|
|
||||||
define("PLAYER_SURVIVAL_SLOTS", 36);
|
define("PLAYER_SURVIVAL_SLOTS", 36);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user