Skip to content

Cannot monitor AsyncChatEvent #1

@Artuto

Description

@Artuto

Hi, I'm trying to monitor Paper's io.papermc.paper.event.player.AsyncChatEvent but an exception is thrown when the event is called:

[18:18:15 ERROR]: Could not pass event AsyncChatEvent to Chatty v1.2.0-SNAPSHOT
java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
        at io.papermc.paper.event.player.AsyncChatEventMethodAccess.invoke(Unknown Source) ~[?:?]
        at me.jantuck.eventdebugger.EventRemapper.returnCurrentValues(EventRemapper.kt:130) ~[EventDebugger-1.1-SNAPSHOT.jar:?]
        at me.jantuck.eventdebugger.EventRemapper.access$returnCurrentValues(EventRemapper.kt:12) ~[EventDebugger-1.1-SNAPSHOT.jar:?]
        at me.jantuck.eventdebugger.EventRemapper$remapAndSubscribe$2$newExecutor$1.execute(EventRemapper.kt:139) ~[EventDebugger-1.1-SNAPSHOT.jar:?]
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[patched_1.17.1.jar:git-Prismarine-21]
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:630) ~[patched_1.17.1.jar:git-Prismarine-21]
        at io.papermc.paper.adventure.ChatProcessor.post(ChatProcessor.java:228) ~[patched_1.17.1.jar:git-Prismarine-21]
        at io.papermc.paper.adventure.ChatProcessor.processModern(ChatProcessor.java:139) ~[patched_1.17.1.jar:git-Prismarine-21]
        at io.papermc.paper.adventure.ChatProcessor.lambda$process$1(ChatProcessor.java:68) ~[patched_1.17.1.jar:git-Prismarine-21]
        at io.papermc.paper.adventure.ChatProcessor.processingLegacyFirst(ChatProcessor.java:129) ~[patched_1.17.1.jar:git-Prismarine-21]
        at io.papermc.paper.adventure.ChatProcessor.process(ChatProcessor.java:65) ~[patched_1.17.1.jar:git-Prismarine-21]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.chat(ServerGamePacketListenerImpl.java:2256) ~[app:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2167) ~[app:?]
        at net.minecraft.server.network.ServerGamePacketListenerImpl.handleChat(ServerGamePacketListenerImpl.java:2133) ~[app:?]
        at net.minecraft.network.protocol.game.ServerboundChatPacket$1.run(ServerboundChatPacket.java:40) ~[app:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
        at java.lang.Thread.run(Thread.java:831) ~[?:?]

My config looks like this:

exact:
  AsyncChatEvent:
    class: "io.papermc.paper.event.player.AsyncChatEvent"
    methods:
      - "message"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions