Skip to content

Conversation

@kit8379
Copy link

@kit8379 kit8379 commented Apr 12, 2025

Previously, RedisChat cancelled AsyncPlayerChatEvent directly, which prevents plugins like DiscordSRV from seeing the message.

This PR replaces event.setCancelled(true) with event.getRecipients().clear(), which suppresses local message broadcasting but still allows observers like DiscordSRV to receive the event.

This improves cross-plugin compatibility, especially for DiscordSRV integration, while preserving RedisChat's control over chat routing.

Tested working with DiscordSRV. No known regressions.

@Emibergo02
Copy link
Owner

But why doesn't DiscordSRV use ignoreCancelled?
The line you changed brokes compatibility with all the other plugins that expect the event to be cancelled.
I think that DiscordSRV has the wrong implementation of the event...

@Emibergo02
Copy link
Owner

In the future i will make a DiscordSRV integration but only on DiscordSRV 3.0 (Ascension)
https://github.com/DiscordSRV/Ascension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants