Dans-Plugins / Medieval-Factions

Allows players to organize themselves into feudal, diplomatic, lawful groups akin to nations.
https://www.spigotmc.org/resources/medieval-factions.79941/
GNU General Public License v3.0
48 stars 32 forks source link

Creating a faction with neutrality enabled then toggling off neutrality in the config causes Medieval Factions to be unable to start #1765

Closed renbinden closed 10 months ago

renbinden commented 11 months ago

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

  1. Allow neutrality in the config
  2. Start the server
  3. Create a faction
  4. Enable neutrality for the faction
  5. Shut down the server
  6. Disable neutrality in the config
  7. 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