cybertiger / Bukkit-Instances

Instances for CraftBukkit
GNU Lesser General Public License v3.0
9 stars 16 forks source link

Problem when world is getting deleted. #31

Closed Wyisk closed 10 years ago

Wyisk commented 10 years ago

I keep getting an error when it comes to deleting the instanced world. I'm using craftbukkit-1.6.4-R2.0 but when I leave the world it tells me in the console:

10:40:51 AM [INFO] [Instances] Deleting instance: Perilous_Ruins:Perilous_Ruins-1

But when I re-enter the instance it gives this error, which I believe is cause because the other instance wasn't correctly deleted:

10:41:00 AM [SEVERE] [Instances] Failed to delete world folder: plugins\Instances\worlds\Perilous_Ruins-1 10:41:00 AM [SEVERE] Could not pass event PlayerMoveEvent to Instances v1.9 10:41:00 AM org.bukkit.event.EventException 10:41:00 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 10:41:00 AM at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 10:41:00 AM at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 10:41:01 AM at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 10:41:01 AM at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:227) 10:41:01 AM at net.minecraft.server.v1_6_R3.Packet10Flying.handle(SourceFile:136) 10:41:01 AM at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296) 10:41:01 AM at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) 10:41:01 AM at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) 10:41:01 AM at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) 10:41:01 AM at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592) 10:41:01 AM at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) 10:41:01 AM at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) 10:41:01 AM at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) 10:41:01 AM at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) 10:41:01 AM Caused by: java.lang.NullPointerException 10:41:01 AM at org.cyberiantiger.minecraft.instances.Cuboid.isEmpty(Cuboid.java:109) 10:41:01 AM at org.cyberiantiger.minecraft.instances.Cuboid.getCenterFloor(Cuboid.java:120) 10:41:01 AM at org.cyberiantiger.minecraft.instances.Portal.teleport(Portal.java:35) 10:41:01 AM at org.cyberiantiger.minecraft.instances.InstanceEntrancePortal.onEnter(InstanceEntrancePortal.java:157) 10:41:01 AM at org.cyberiantiger.minecraft.instances.Instances.onPlayerMove(Instances.java:806) 10:41:01 AM at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) 10:41:01 AM at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 10:41:01 AM at java.lang.reflect.Method.invoke(Unknown Source) 10:41:01 AM at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) 10:41:01 AM ... 14 more

cybertiger commented 10 years ago

I think this is a duplicate of #30.

I'm assuming you're on windows?

If so I'll close this issue, and will track it just by #30.

It'll likely be fixed in the release with support for 1.7