Shampaggon / CrackShot

CrackShot plugin for Minecraft
58 stars 43 forks source link

Error when chest is opened #53

Open theJ3H opened 5 years ago

theJ3H commented 5 years ago

I get this error when a player opens a chest. It only happens some times. The chest that is being opened was created by a survival game plugin.

java.lang.ClassCastException: org.bukkit.block.DoubleChest cannot be cast to org.bukkit.block.Chest at org.bukkit.block.DoubleChest.getWorld(DoubleChest.java:36) at org.bukkit.block.DoubleChest.getLocation(DoubleChest.java:32) at com.shampaggon.crackshot.CSDirector.trapCard(CSDirector.java:4595) at sun.reflect.GeneratedMethodAccessor105.invoke at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:729) at net.minecraft.server.v1_8_R3.EntityPlayer.openContainer(EntityPlayer.java:680) at net.minecraft.server.v1_8_R3.BlockChest.interact(BlockChest.java:325) at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact(PlayerInteractManager.java:496) at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:763) at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774) at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) at java.lang.Thread.run(Thread.java:748) org.bukkit.event.EventException: Could not pass event InventoryOpenEvent to CrackShot v0.98.9 at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:729) at net.minecraft.server.v1_8_R3.EntityPlayer.openContainer(EntityPlayer.java:680) at net.minecraft.server.v1_8_R3.BlockChest.interact(BlockChest.java:325) at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact(PlayerInteractManager.java:496) at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:763) at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774) at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) at java.lang.Thread.run(Thread.java:748)