I am using version 0.6.1 of the plugin on the 1.19.2-purpur server, and I am using version 4.3.1 and 4.3.2 snapshot versions of the multiverse core plugin. However, I encountered a problem. The plugin cannot delete the world normally, so I cannot continue to reset the world.
Among the information I found on the console, only the following contents are related to them (I set the reset interval of the world to five minutes, so it can be seen that this Exception occurred during the second attempt to reset)
- [14:59:00] [Server thread/INFO]: [Multiverse-Core] World 's_world' was unloaded from Multiverse.
[14:59:00] [Server thread/INFO]: The world "s_world" failed to delete!
[14:59:38] [Server thread/INFO]: TsingYayin issued server command: /world s_world
[15:04:00] [Server thread/WARN]: [CWR] Task #3868 for CyberWorldReset v0.6.1 generated an exception
java.lang.NullPointerException: Cannot invoke "org.bukkit.World.getEnvironment()" because the return value of "net.zerotoil.cyberworldreset.objects.WorldObject.getWorld()" is null
at net.zerotoil.cyberworldreset.objects.WorldObject.tpPlayersAway(WorldObject.java:231) ~[CyberWorldReset-0.6.1.jar:?]
at net.zerotoil.cyberworldreset.objects.WorldObject.regenWorld(WorldObject.java:141) ~[CyberWorldReset-0.6.1.jar:?]
at net.zerotoil.cyberworldreset.objects.TimedReset$MyTimeTask$1.run(TimedReset.java:182) ~[CyberWorldReset-0.6.1.jar:?]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1758]
at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[purpur-1.19.2.jar:git-Purpur-1758]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1519) ~[purpur-1.19.2.jar:git-Purpur-1758]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:485) ~[purpur-1.19.2.jar:git-Purpur-1758]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1443) ~[purpur-1.19.2.jar:git-Purpur-1758]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1213) ~[purpur-1.19.2.jar:git-Purpur-1758]
at net.minecraft.server.MinecraftServer.lambda$spin$1(MinecraftServer.java:310) ~[purpur-1.19.2.jar:git-Purpur-1758]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
When I actually checked the corresponding folder of the world named "s_world" mentioned above, I found that most of the files have been deleted, but one .mca file in the poi folder has not been deleted. Since I was the only one on the server during the test, I presume that this file should be occupied during deletion due to some unload error, so it could not be removed correctly.