mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Server: initialize auto updater before loading plugins, not after
from a plugin PoV, getUpdater() is always supposed to return an AutoUpdater instance, but it would return null during onLoad(), which is bad.
This commit is contained in:
parent
ecf662bf74
commit
0d19f6c968
@ -1522,10 +1522,9 @@ class Server{
|
|||||||
|
|
||||||
$this->queryRegenerateTask = new QueryRegenerateEvent($this);
|
$this->queryRegenerateTask = new QueryRegenerateEvent($this);
|
||||||
|
|
||||||
$this->pluginManager->loadPlugins($this->pluginPath);
|
|
||||||
|
|
||||||
$this->updater = new AutoUpdater($this, $this->getProperty("auto-updater.host", "update.pmmp.io"));
|
$this->updater = new AutoUpdater($this, $this->getProperty("auto-updater.host", "update.pmmp.io"));
|
||||||
|
|
||||||
|
$this->pluginManager->loadPlugins($this->pluginPath);
|
||||||
$this->enablePlugins(PluginLoadOrder::STARTUP);
|
$this->enablePlugins(PluginLoadOrder::STARTUP);
|
||||||
|
|
||||||
$this->network->registerInterface(new RakLibInterface($this));
|
$this->network->registerInterface(new RakLibInterface($this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user