Moved dependency one line down

This commit is contained in:
DroppingAnvil 2019-10-17 13:01:44 -05:00
parent 77c74e10ac
commit d57f3b6f01

View File

@ -182,6 +182,8 @@ public class FactionsPlugin extends MPlugin {
} }
//Attempt to generate a permission list //Attempt to generate a permission list
PermissionList.generateFile(); PermissionList.generateFile();
// Load Conf from disk
Conf.load();
//Dependency checks //Dependency checks
if (Conf.dependencyCheck && (Bukkit.getPluginManager().isPluginEnabled("Vault") && Bukkit.getPluginManager().isPluginEnabled("Essentials"))) { if (Conf.dependencyCheck && (Bukkit.getPluginManager().isPluginEnabled("Vault") && Bukkit.getPluginManager().isPluginEnabled("Essentials"))) {
RegisteredServiceProvider<Economy> rsp = FactionsPlugin.this.getServer().getServicesManager().getRegistration(Economy.class); RegisteredServiceProvider<Economy> rsp = FactionsPlugin.this.getServer().getServicesManager().getRegistration(Economy.class);
@ -194,8 +196,6 @@ public class FactionsPlugin extends MPlugin {
divider(); divider();
return; return;
} }
// Load Conf from disk
Conf.load();
com.massivecraft.factions.integration.Essentials.setup(); com.massivecraft.factions.integration.Essentials.setup();
hookedPlayervaults = setupPlayervaults(); hookedPlayervaults = setupPlayervaults();
FPlayers.getInstance().load(); FPlayers.getInstance().load();