LOOHP / InteractiveChat

Add click and hover events to chat messages!
https://www.spigotmc.org/resources/75870/
GNU General Public License v3.0
150 stars 27 forks source link

Error when running proxy command #196

Closed JamieIsGeek closed 1 month ago

JamieIsGeek commented 2 months ago

Hi, whenever I run a command for a plugin running on my proxy, InteractiveChat seems to be intercepting and stopping the command producing this error:

[12:28:53 ERROR]: Exception in thread "Timer-0" java.lang.IllegalArgumentException: Can not set com.velocitypowered.proxy.protocol.packet.chat.ComponentHolder field com.velocitypowered.proxy.protocol.packet.chat.SystemChatPacket.component to net.kyori.adventure.text.TextComponentImpl
[12:28:53 ERROR]:       at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:228)
[12:28:53 ERROR]:       at java.base/jdk.internal.reflect.FieldAccessorImpl.throwSetIllegalArgumentException(FieldAccessorImpl.java:232)
[12:28:53 ERROR]:       at java.base/jdk.internal.reflect.MethodHandleObjectFieldAccessorImpl.set(MethodHandleObjectFieldAccessorImpl.java:115)
[12:28:53 ERROR]:       at java.base/java.lang.reflect.Field.set(Field.java:836)
[12:28:53 ERROR]:       at com.loohp.interactivechat.proxy.velocity.InteractiveChatVelocity.lambda$onProxyInitialization$4(InteractiveChatVelocity.java:304)
[12:28:53 ERROR]:       at com.loohp.interactivechat.proxy.objectholders.ProxyMessageForwardingHandler$1.run(ProxyMessageForwardingHandler.java:120)
[12:28:53 ERROR]:       at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
[12:28:53 ERROR]:       at java.base/java.util.TimerThread.run(Timer.java:516)

Running on velocity and the backend paper servers :)

LOOHP commented 1 month ago

Is this still happening in IC 4.2.10?

T14D3 commented 1 month ago

No, fixed with 4.2.10