mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 21:29:14 +01:00
Enable subplugins earlier
This commit is contained in:
parent
a7e926b44a
commit
6ce2b9c2d2
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user