Creating a faction with neutrality enabled then toggling off neutrality in the config causes Medieval Factions to be unable to start
To Reproduce
Allow neutrality in the config
Start the server
Create a faction
Enable neutrality for the faction
Shut down the server
Disable neutrality in the config
Start up the server
Expected behavior
Medieval Factions disables neutrality for the faction
Screenshots or Logs
[22:39:42 ERROR]: Error occurred while enabling MedievalFactions v5.2.0 (Is it up to date?)
com.dansplugins.factionsystem.shadow.kotlin.UninitializedPropertyAccessException: lateinit property services has not been initialized
at com.dansplugins.factionsystem.MedievalFactions.getServices(MedievalFactions.kt:118) ~[medieval-factions-5.2.0-all.jar:?]
at com.dansplugins.factionsystem.faction.MfFactionService.save(MfFactionService.kt:125) ~[medieval-factions-5.2.0-all.jar:?]
at com.dansplugins.factionsystem.faction.MfFactionService.<init>(MfFactionService.kt:48) ~[medieval-factions-5.2.0-all.jar:?]
at com.dansplugins.factionsystem.MedievalFactions.onEnable(MedievalFactions.kt:198) ~[medieval-factions-5.2.0-all.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[purpur-1.20.1.jar:git-Purpur-2062]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[purpur-1.20.1.jar:git-Purpur-2062]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[purpur-api-1.20.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugin(CraftServer.java:656) ~[purpur-1.20.1.jar:git-Purpur-2062]
at org.bukkit.craftbukkit.v1_20_R1.CraftServer.enablePlugins(CraftServer.java:567) ~[purpur-1.20.1.jar:git-Purpur-2062]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:640) ~[purpur-1.20.1.jar:git-Purpur-2062]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:439) ~[purpur-1.20.1.jar:git-Purpur-2062]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.1.jar:git-Purpur-2062]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1116) ~[purpur-1.20.1.jar:git-Purpur-2062]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:322) ~[purpur-1.20.1.jar:git-Purpur-2062]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[22:39:42 INFO]: [MedievalFactions] Disabling MedievalFactions v5.2.0
Plugin version
v5.2.0
Spigot/Paper version(Please Specify which server software you are using)
1.20.1
Describe the bug
Creating a faction with neutrality enabled then toggling off neutrality in the config causes Medieval Factions to be unable to start
To Reproduce
Expected behavior
Medieval Factions disables neutrality for the faction
Screenshots or Logs
Plugin version v5.2.0
Spigot/Paper version (Please Specify which server software you are using) 1.20.1