diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index 576504f5b..c14cfcc8b 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -1267,8 +1267,6 @@ class Server{ $this->enablePlugins(PluginLoadOrder::STARTUP); - $this->network->registerInterface(new RakLibInterface($this)); - foreach((array) $this->getProperty("worlds", []) as $name => $options){ if($options === null){ $options = []; @@ -1322,6 +1320,8 @@ class Server{ $this->enablePlugins(PluginLoadOrder::POSTWORLD); + $this->network->registerInterface(new RakLibInterface($this)); + if($this->getConfigBool("enable-query", true)){ $this->network->registerRawPacketHandler(new QueryHandler()); }