ClassCastException CraftInventory cannot be cast to DoubleChestInventory #291


  • New
  • Defect
Open
Assigned to shampaggon
  • Forge_User_90027750 created this issue Jun 19, 2015

    What steps will reproduce the problem?
    1. Upgrade to 0.98.4 from 0.98.2
    2. Open a double chest I guess
    3.

    What happened?

    What was supposed to happen?

    What version of CraftBukkit/Spigot are you using?

    Spigot build 494, Minecraft 1.8.7

    Were there any errors in the console? If so, what were they?

    [12:20:15] [Server thread/ERROR]: Could not pass event InventoryOpenEvent to CrackShot v0.98.4
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:715) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.EntityPlayer.openContainer(EntityPlayer.java:663) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.craftbukkit.v1_8_R3.entity.CraftHumanEntity.openInventory(CraftHumanEntity.java:184) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.openTreasureInventory(TreasureManager.java:363) [TreasureChest-8.4.5-SNAPSHOT.jar:?]
        at com.mtihc.minecraft.treasurechest.v8.core.TreasureManager.onPlayerInteract(TreasureManager.java:235) [TreasureChest-8.4.5-SNAPSHOT.jar:?]
        at com.mtihc.minecraft.treasurechest.v8.core.TreasureChestListener.onPlayerInteract(TreasureChestListener.java:66) [TreasureChest-8.4.5-SNAPSHOT.jar:?]
        at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_11]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:227) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.PlayerInteractManager.interact(PlayerInteractManager.java:463) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:736) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:52) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.PacketPlayInBlockPlace.a(PacketPlayInBlockPlace.java:1) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_11]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_11]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_11]
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventory cannot be cast to org.bukkit.inventory.DoubleChestInventory
        at com.shampaggon.crackshot.CSDirector.trapCard(CSDirector.java:4539) ~[?:?]
        at sun.reflect.GeneratedMethodAccessor666.invoke(Unknown Source) ~[?:?]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_11]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-d2856ae-8f0f4ed]
        ... 30 more

    Please provide your configuration file if necessary.

    #Visit the Complete Guide to CrackShot for information on everything in the configuration.
    #https://github.com/Shampaggon/CrackShot/wiki/The-Complete-Guide-to-CrackShot

    #Use this node to completely disable CrackShot in certain worlds. Example usage:
    #
    #Disabled_Worlds:
    #    - world_nether
    #    - world_the_end
    #    - world_foldername
    #
    #"Disabled_Worlds: []" means the list is empty. Change it to "Disabled_Worlds:" before listing worlds.
    #Remember not to use any tabs. The spacing must also be correct.
    Disabled_Worlds: []

    #Use this module to limit the amount of weapons a player can have in the hot bar.
    #If the specified amount is exceeded, the weapon cannot be used. Example usage:
    #
    #Inventory_Control:
    #    Group_Primary:
    #        Limit: 2
    #    Group_BlaBlaBla:
    #        Limit: 2
    #    Whatever_Name_You_Want:
    #        Limit: 2
    #
    #You can create as many groups as you want. Messages and sounds are optional.
    #Enforce these limits using the Inventory_Control node in the weapon's Item_Information module.
    #The example below is used for the default weapon Bazooka.
    Inventory_Control:
        Group_Bazookas:
            Limit: 1
            Message_Exceeded: "&e[IC] &bYou cannot have more than one Bazooka in the hot bar!"
            Sounds_Exceeded: LAVA_POP-1-1-0

    #A merged reload refers to the act of reloading multiple weapons in the same slot.
    #Set "Disable" to true if you wish to prevent players from doing this.
    #Messages and sounds are optional.
    Merged_Reload:
        Disable: false
        Message_Denied: "&eYou cannot reload slots that contain more than one weapon!"
        Sounds_Denied: VILLAGER_NO-1-1-0

  • Forge_User_90027750 added the tags New Defect Jun 19, 2015

To post a comment, please login or register a new account.