Update PocketMinecraftServer.php

This commit is contained in:
kotyara 2022-03-08 15:16:10 +05:00 • committed by GitHub
parent 9ee61ed3ad
commit 82d75730c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,7 @@ class PocketMinecraftServer{
global $dolog;
$this->version = new VersionString();
/*if(defined("DEBUG") and DEBUG >= 0){
@cli_set_process_title("PocketMine-MP ".MAJOR_VERSION);
@cli_set_process_title("NostalgiaCore ".MAJOR_VERSION);
}*/
console("[INFO] Starting Minecraft PE server on ".($this->serverip === "0.0.0.0" ? "*":$this->serverip).":".$this->port);
define("BOOTUP_RANDOM", Utils::getRandomBytes(16));
@ -72,14 +72,12 @@ class PocketMinecraftServer{
$this->asyncThread = new AsyncMultipleQueue();
}
console("[INFO] Loading extra.properties...");
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, array(
"update-client-on-world-switch" => true,
"update-frequency" => 8,
"save-player-data" => true,
"save-console-data" => true
));
$this->extraprops = new Config(DATA_PATH . "extra.properties", CONFIG_PROPERTIES, array(
"save-player-data" => true,
"save-console-data" => true
));
$dolog = $this->extraprops->get("save-console-data");
$dolog = $this->extraprops->get("save-console-data");
}
function __construct($name, $gamemode = SURVIVAL, $seed = false, $port = 19132, $serverip = "0.0.0.0"){