kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
49 stars 23 forks source link

1.20.4: Denizen chat events doesnt work #2570

Closed Lorias-Jak closed 7 months ago

Lorias-Jak commented 7 months ago

"/version ChatControlRed" - plugin version

10.24.2

Are you using MySQL?

No

Are you using BungeeCord?

No

Error log (if applicable)

No response

"/chc debug" output (strongly recommended)

debug.zip

Information about the issue/bug

I cant use the "on player chat" and "after player chat" event from denizen. It simply doesnt get called, even if i change the listener priority. Tested it on my Server within my Velocity network. And with a minimal Setup. I send the chcr data of the minimal setup, its just a basic paper Server with no proxy.

And the Denizen script. I had to zip it to upload it here. chat-test-script.zip

Is there anything to do about it?

Lorias-Jak commented 7 months ago

Edit: I think i got it running to fire the event. The next problem is, that i cant cancel the event from denizen. ChatControl still reacts and does it's thing, when i try to cancel the event image image

kangarko commented 7 months ago

Unfortunately we cancel the chat event making it incompatible by default.

However, you can try changing the listener priority from LOWEST to HIGHEST or even MONITOR to see if one of them fixes it: https://github.com/kangarko/ChatControl-Red/wiki/Listener-Priorities

Lorias-Jak commented 7 months ago

Nah it sadly doesnt help for canceling the chat event via denizen. We cant work with Chat-Interceptors like this. An important feature for us

kangarko commented 7 months ago

We support the legacy chat event which does not let us send messages in the interactive click/hover format, hence we need to cancel it and send it in our own unique way.

Most people found solutions by changing the event priorities as I described above, have you tried that?