CraftBook 3

CraftBook 3

139k Downloads

Console spamming 'Could not pass event PlayerInteractEvent'

LadyCailinBot opened this issue ยท 2 comments

commented

CRAFTBOOK-3191 - Reported by Jeronimo

Using:

  • Spigot 1.9
  • worldedit-bukkit-6.1.1-SNAPSHOT-dist
  • CraftBook-3.9-SNAPSHOT (Build #37)

I get following error in console:

Could not pass event PlayerInteractEvent to CraftBook v3.9-SNAPSHOT
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at org.bukkit.craftbukkit.v1_9_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:212) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.PlayerInteractManager.a(PlayerInteractManager.java:482) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.PlayerConnection.a(PlayerConnection.java:840) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.PacketPlayInUseItem.a(SourceFile:55) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.PacketPlayInUseItem.a(SourceFile:11) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_71]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_71]
at net.minecraft.server.v1_9_R1.SystemUtils.a(SourceFile:45) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:716) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:655) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:554) [craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_71]
Caused by: java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerInteractEvent.getHand()Lorg/bukkit/inventory/EquipmentSlot;
at com.sk89q.craftbook.mechanics.Elevator.onCommonClick(Elevator.java:222) ~[?:?]
at com.sk89q.craftbook.mechanics.Elevator.onRightClick(Elevator.java:210) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_71]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_71]
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[craftbukkit_1.9.jar:git-Spigot-7d15d07-c194444]
... 17 more

In advance I would thank for succesful support and I would express regret for my bad english :)

commented

Comment by wizjany

try updating spigot, looks like you are on an old 1.9 build.

commented

Comment by Jeronimo

Thanks, now it works. I had an old 1.9build. Issue can be closed/can be set as fixed.