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:
Dylan K. Taylor 2019-03-26 14:07:32 +00:00
parent ca22223b62
commit 01e048c4d1
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 5f9877c1bc08082f0917f284be023e26bb83d3ae
Subproject commit b8ec058c4cf341ff0c4f08f315feb990b62ae0e5

View File

@ -1190,7 +1190,6 @@ class Server{
@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));
$this->serverID = Utils::getMachineUniqueId($this->getIp() . $this->getPort());
@ -1321,6 +1320,7 @@ class Server{
$this->enablePlugins(PluginLoadOrder::POSTWORLD);
$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)){
$this->network->registerRawPacketHandler(new QueryHandler());