Skip to content

Show muted players' private messages to social spies#6569

Open
JRoy wants to merge 1 commit into
EssentialsX:2.xfrom
JRoy:fix/6341
Open

Show muted players' private messages to social spies#6569
JRoy wants to merge 1 commit into
EssentialsX:2.xfrom
JRoy:fix/6341

Conversation

@JRoy

@JRoy JRoy commented Jun 14, 2026

Copy link
Copy Markdown
Member

Muted players' /msg and /r attempts threw a "silenced" error before reaching SimpleMessageRecipient, so the socialspy-listen-muted-players option never applied to private messages.

Move mute handling into SimpleMessageRecipient#sendMessage: a muted sender's message is dropped instead of delivered, the sender is notified they're silenced, and social spies still see it with the muted prefix when socialspy-listen-muted-players is enabled. PrivateMessageSentEvent is not fired in this case so undelivered messages aren't relayed elsewhere (e.g. Discord).

Also adds User#notifyMuted() to dedupe the silenced-message logic shared with EssentialsPlayerListener.

Fixes #6341

Muted players' /msg and /r attempts threw a "silenced" error before
reaching SimpleMessageRecipient, so the socialspy-listen-muted-players
option never applied to private messages.

Move mute handling into SimpleMessageRecipient#sendMessage: a muted
sender's message is dropped instead of delivered, the sender is notified
they're silenced, and social spies still see it with the muted prefix
when socialspy-listen-muted-players is enabled. PrivateMessageSentEvent
is not fired in this case so undelivered messages aren't relayed
elsewhere (e.g. Discord).

Also adds User#notifyMuted() to dedupe the silenced-message logic shared
with EssentialsPlayerListener.

Fixes EssentialsX#6341
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.

The social spy feature does not work for mute players.

1 participant