Plugin disables after loading a new world
Insomniac314 opened this issue ยท 0 comments
Describe the bug
Adding a new world via /tardisworld load, crashes plugin
To Reproduce
- Add a new world folder to server folder
- start server
- /tardisworld load "newWorld"
- stop server
- start server again
Log files
[11:18:42 ERROR]: Error occurred while enabling TARDIS v5.7.5-b3007 (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "org.bukkit.configuration.ConfigurationSection.getKeys(boolean)" because the return value of "org.bukkit.configuration.file.FileConfiguration.getConfigurationSection(String)" is null
at TARDIS.jar/me.eccentric_nz.TARDIS.planets.TARDISWorlds.loadWorld(TARDISWorlds.java:72) ~[TARDIS.jar:?]
at TARDIS.jar/me.eccentric_nz.TARDIS.planets.TARDISWorlds.lambda$doWorlds$1(TARDISWorlds.java:138) ~[TARDIS.jar:?]
at java.base/java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at TARDIS.jar/me.eccentric_nz.TARDIS.planets.TARDISWorlds.doWorlds(TARDISWorlds.java:134) ~[TARDIS.jar:?]
at TARDIS.jar/me.eccentric_nz.TARDIS.files.TARDISConfiguration.checkConfig(TARDISConfiguration.java:495) ~[TARDIS.jar:?]
at TARDIS.jar/me.eccentric_nz.TARDIS.TARDIS.onEnable(TARDIS.java:344) ~[TARDIS.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:288) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:202) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:109) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:520) ~[paper-mojangapi-1.21.1-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.CraftServer.enablePlugin(CraftServer.java:641) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:590) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:753) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:515) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:329) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1214) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:329) ~[paper-1.21.1.jar:1.21.1-128-d348cb8]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
'/tardis version' output
[11:25:03 INFO]: [TARDIS] Server version: 1.21.1-128-d348cb8 (MC: 1.21.1)
[11:25:03 INFO]: [TARDIS] TARDIS version: 5.7.5-b3007
[11:25:03 INFO]: [TARDIS] Vault version: 1.7.3-b131
[11:25:03 INFO]: [TARDIS] PlaceholderAPI version: 2.11.6
[11:25:03 INFO]: [TARDIS] WorldGuard version: 7.0.12+829a4a4
[11:25:03 INFO]: [TARDIS] Multiverse-Core version: 4.3.1-b861
[11:25:03 INFO]: [TARDIS] GriefPrevention version: 16.18.4
[11:25:03 INFO]: [TARDIS] Essentials version: 2.21.0-dev+121-f7a8f86
[11:25:03 INFO]: [TARDIS] LibsDisguises version: 10.0.44-SNAPSHOT