PreciousStones

PreciousStones

269k Downloads

Problem with InventoryOpenEvent

andramil opened this issue ยท 0 comments

commented

Hi. Im using old version 9.7.0 of PS cos im running mod server on 1.7.10
PS versions for 1.8 dont work properly on server.

I have a lot of errors in my console. It shows when someone use doublechest from mod "wood stuff" (chests, fences, bookshelfs etc from diffrent woods) on his own PS. He can use still chests but errors are print on my console.

When someone not allowed try use it, he could until i blocked certain ids in "protect-use" (notallowed user could bypass protect inventory). Not any errors shows in my console in this situations.

Is it possible to look at it? I know, that is ultra legacy version, and errors are conected with mods but i will be glad when you look at it and it would be awesome to repair it or expalin what this error can cause (lags, shutdown server or nothing)

ps: sorry for my english, im not native speaker.

[13:42:43 ERROR]: Could not pass event InventoryOpenEvent to PreciousStones v9.7.0
org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:338) ~[JavaPluginLoader$1.class:1.7.10-1614.57]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[RegisteredListener.class:1.7.10-1614.57]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:507) [SimplePluginManager.class:1.7.10-1614.57]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:492) [SimplePluginManager.class:1.7.10-1614.57]
        at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:780) [CraftEventFactory.class:1.7.10-1614.57]
        at org.bukkit.craftbukkit.v1_7_R4.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:760) [CraftEventFactory.class:1.7.10-1614.57]
        at net.minecraft.entity.player.EntityPlayerMP.func_71007_a(EntityPlayerMP.java:881) [mw.class:?]
        at net.minecraft.block.BlockChest.func_149727_a(BlockChest.java:398) [ajx.class:?]
        at net.minecraft.server.management.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:465) [mx.class:?]
        at net.minecraft.network.NetHandlerPlayServer.func_147346_a(NetHandlerPlayServer.java:861) [nh.class:?]
        at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:60) [jo.class:?]
        at net.minecraft.network.play.client.C08PacketPlayerBlockPlacement.func_148833_a(SourceFile:9) [jo.class:?]
        at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:245) [ej.class:?]
        at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:181) [nc.class:?]
        at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:1023) [MinecraftServer.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:432) [lt.class:?]
        at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:841) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:693) [MinecraftServer.class:?]
        at java.lang.Thread.run(Thread.java:745) [?:1.8.0_73]
Caused by: java.lang.ClassCastException: net.minecraftforge.cauldron.block.CraftCustomContainer cannot be cast to org.bukkit.block.Chest
        at org.bukkit.block.DoubleChest.getWorld(DoubleChest.java:36) ~[DoubleChest.class:1.7.10-1614.57]
        at org.bukkit.block.DoubleChest.getLocation(DoubleChest.java:32) ~[DoubleChest.class:1.7.10-1614.57]
        at net.sacredlabyrinth.Phaed.PreciousStones.listeners.PSBlockListener.onInventoryOpenEvent(PSBlockListener.java:1770) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_73]
        at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_73]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:334) ~[JavaPluginLoader$1.class:1.7.10-1614.57]
        ... 18 more