mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
added chunk send delay into server.properties(min=0, default=5)
This commit is contained in:
parent
c150a46383
commit
07632377ac
4 changed files with 10 additions and 5 deletions
|
|
@ -138,6 +138,7 @@ class ServerAPI{
|
|||
"enable-rcon" => false,
|
||||
"rcon.password" => substr(base64_encode(Utils::getRandomBytes(20, false)), 3, 10),
|
||||
"auto-save" => true,
|
||||
"chunk-send-delay-ticks" => 5,
|
||||
]);
|
||||
Biome::init();
|
||||
$this->parseProperties();
|
||||
|
|
@ -151,6 +152,7 @@ class ServerAPI{
|
|||
}
|
||||
MobSpawner::$spawnAnimals = $this->getProperty("spawn-animals");
|
||||
MobSpawner::$spawnMobs = $this->getProperty("spawn-mobs");
|
||||
PocketMinecraftServer::$chukSendDelay = $this->getProperty("chunk-send-delay-ticks");
|
||||
if($this->getProperty("upnp-forwarding") == true){
|
||||
console("[INFO] [UPnP] Trying to port forward...");
|
||||
UPnP_PortForward($this->getProperty("server-port"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue