I don't know what this Error means

Discussion in 'Plugin Development' started by lgplay, Jun 6, 2017.

Thread Status:
Not open for further replies.
  1. Code:
    [22:39:20] [Server thread/ERROR]: Could not pass event InventoryClickEvent to Vanilla v1.8
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot188.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot188.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1630) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:31) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PacketPlayInWindowClick.a(SourceFile:9) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_131]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_131]
        at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot188.jar:git-Spigot-db6de12-18fbb24]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.v1_8_R3.entity.CraftHumanEntity.openInventory(CraftHumanEntity.java:176) ~[spigot188.jar:git-Spigot-db6de12-18fbb24]
        at ga.lgplay.vanilla.shop.ShopMain.onInventoryClick(ShopMain.java:73) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot188.jar:git-Spigot-db6de12-18fbb24]
        ... 15 more
     
    Last edited by a moderator: Jun 6, 2017
  2. Offline

    timtower Administrator Administrator Moderator

    Moved to plugin development.
    @lgplay Please post your ShopMain and your main class
     
  3. Offline

    timtower Administrator Administrator Moderator

    @lgplay Why do you want to open an empty inventory?
     
  4. this was Only is test the error comes by the other the Ores class
     
  5. Offline

    Caderape2

    @lgplay You have the same error if u use the variable player for open the inventory ?
     
  6. @Caderape2 yes same error
     
    Last edited: Jun 6, 2017
  7. Offline

    Caderape2

    @lgplay If the error come when you open the empty inventory, i give up.
    But if it comes when you open the inventory in the class Ores, it's cause the inventory has not been created, since you didn't call the constructor.

    And don't abuse of static. You know how to use a constructor, use it well.
     
    lgplay likes this.
  8. Thanks i forgot
     
Thread Status:
Not open for further replies.

Share This Page