Enable subplugins earlier

This commit is contained in:
fullwall 2012-09-20 08:52:44 +08:00
parent a7e926b44a
commit 6ce2b9c2d2

View File

@ -220,6 +220,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
setupEconomy(); setupEconomy();
registerCommands(); registerCommands();
enableSubPlugins();
Messaging.logF("v%s enabled.", getDescription().getVersion()); Messaging.logF("v%s enabled.", getDescription().getVersion());
// Setup NPCs after all plugins have been enabled (allows for multiworld // Setup NPCs after all plugins have been enabled (allows for multiworld
@ -229,7 +230,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
public void run() { public void run() {
saves.loadInto(npcRegistry); saves.loadInto(npcRegistry);
startMetrics(); startMetrics();
enableSubPlugins();
scheduleSaveTask(Setting.SAVE_TASK_DELAY.asInt()); scheduleSaveTask(Setting.SAVE_TASK_DELAY.asInt());
Bukkit.getPluginManager().callEvent(new CitizensEnableEvent()); Bukkit.getPluginManager().callEvent(new CitizensEnableEvent());
} }