mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Move networkStart message to where we actually start network
i.e. the point at which a normal user can reasonably expect to be able to connect to the server ...
This commit is contained in:
Submodule resources/locale updated: 5f9877c1bc...b8ec058c4c
@@ -1190,7 +1190,6 @@ class Server{
|
|||||||
@cli_set_process_title($this->getName() . " " . $this->getPocketMineVersion());
|
@cli_set_process_title($this->getName() . " " . $this->getPocketMineVersion());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->logger->info($this->getLanguage()->translateString("pocketmine.server.networkStart", [$this->getIp(), $this->getPort()]));
|
|
||||||
define("BOOTUP_RANDOM", random_bytes(16));
|
define("BOOTUP_RANDOM", random_bytes(16));
|
||||||
$this->serverID = Utils::getMachineUniqueId($this->getIp() . $this->getPort());
|
$this->serverID = Utils::getMachineUniqueId($this->getIp() . $this->getPort());
|
||||||
|
|
||||||
@@ -1321,6 +1320,7 @@ class Server{
|
|||||||
$this->enablePlugins(PluginLoadOrder::POSTWORLD);
|
$this->enablePlugins(PluginLoadOrder::POSTWORLD);
|
||||||
|
|
||||||
$this->network->registerInterface(new RakLibInterface($this));
|
$this->network->registerInterface(new RakLibInterface($this));
|
||||||
|
$this->logger->info($this->getLanguage()->translateString("pocketmine.server.networkStart", [$this->getIp(), $this->getPort()]));
|
||||||
|
|
||||||
if($this->getConfigBool("enable-query", true)){
|
if($this->getConfigBool("enable-query", true)){
|
||||||
$this->network->registerRawPacketHandler(new QueryHandler());
|
$this->network->registerRawPacketHandler(new QueryHandler());
|
||||||
|
Reference in New Issue
Block a user