mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-10 21:02:36 +01:00
Load settings earlier (Fix CITIZENS-402, CITIZENS-417)
This commit is contained in:
parent
cea26b3db0
commit
23fab58673
@ -177,6 +177,7 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
public void onEnable() {
|
||||
setupTranslator();
|
||||
CitizensAPI.setImplementation(this);
|
||||
config = new Settings(getDataFolder());
|
||||
// Disable if the server is not using the compatible Minecraft version
|
||||
String mcVersion = Util.getMinecraftVersion();
|
||||
compatible = mcVersion.startsWith(COMPATIBLE_MC_VERSION);
|
||||
@ -185,7 +186,6 @@ public class Citizens extends JavaPlugin implements CitizensPlugin {
|
||||
getServer().getPluginManager().disablePlugin(this);
|
||||
return;
|
||||
}
|
||||
config = new Settings(getDataFolder());
|
||||
registerScriptHelpers();
|
||||
|
||||
saves = NPCDataStore.create(getDataFolder());
|
||||
|
Loading…
Reference in New Issue
Block a user