Register expansions in the ServerLoadEvent which is called after the server startup process is complete.

Fixes #103
This commit is contained in:
extendedclip
2019-05-04 19:56:59 -04:00
parent 8f600aec25
commit 16d0a4f690
2 changed files with 7 additions and 2 deletions

View File

@@ -132,8 +132,6 @@ public class PlaceholderAPIPlugin extends JavaPlugin {
setupOptions();
getCommand("placeholderapi").setExecutor(new PlaceholderAPICommands(this));
new PlaceholderListener(this);
getLogger().info("Placeholder expansion registration initializing...");
expansionManager.registerAllExpansions();
if (config.checkUpdates()) {
new UpdateChecker(this).fetch();
}