TriggerReactor

TriggerReactor

24.6k Downloads

Unable to add click trigger to a block

Ghost295 opened this issue ยท 2 comments

commented

On a 1.8.8 Spigot Server with latest Trigger Reactor build: 1.4.3
When using the cmd:
/trg c #MESSAGE "HI"
Then I have to select a block to place the trigger on, but it nevers displays the message : "Now click the block to set click trigger" given in the Tutorial.
Instead a error message is displayed in the console
[00:11:29 ERROR]: Could not pass event PlayerInteractEvent to TriggerReactor v1. 4.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:310) ~[spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) ~[spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:502) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:487) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:228) [spigot.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:195) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerInteractManager.a(PlayerInteractMa nager.java:107) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java :623) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInBlockDig.a(SourceFile:40) [s pigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInBlockDig.a(SourceFile:10) [s pigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:1 3) [spigot.jar:git-Spigot-21fe707-e1ebe52] 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) [spigot.jar :git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:7 15) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:3 74) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:6 54) [spigot.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java :557) [spigot.jar:git-Spigot-21fe707-e1ebe52] at java.lang.Thread.run(Unknown Source) [?:1.8.0_131]`

Caused by: java.lang.NoSuchMethodError: org.bukkit.event.player.PlayerInteractEv ent.getHand()Lorg/bukkit/inventory/EquipmentSlot; at io.github.wysohn.triggerreactor.bukkit.manager.trigger.ClickTriggerMa nager.onClickTrigger(ClickTriggerManager.java:56) ~[TriggerReactor%20(2).jar:?] at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source) ~[?:?] 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.ja va:306) ~[spigot.jar:git-Spigot-21fe707-e1ebe52] ... 18 more

This happens for the click and walk triggers.

commented

Thank you for the report

I will fix that in the next dev build.

commented

738faed

You may download the dev build or wait for the new release