Skip to content

EssentialsDiscord: local messages treated as global and relayed when all players are in local message range #4989

@stepa2

Description

@stepa2

Type of bug

Exploit

/ess dump all output

https://essentialsx.net/dump.html?id=5b9d8973f60f490b9ccedf0513ffbc1b

Error log (if applicable)

No response

Bug description

Local messages treated as global and relayed when all players are in local message range.
Yes, I am using Mohist, but the problem is in Essentials code.

chatEvent.setCancelled(!jda.getSettings().isShowAllChat() && !event.getRecipients().containsAll(Bukkit.getOnlinePlayers()));

Steps to reproduce

  1. Setup discord channel
  2. Configurate EssentialsDiscord\config.yml, set chat.show-all-chat to false
  3. Have two people in local message range
  4. One player should say something (as local message)

Expected behaviour

Message should not be relayed to Discord chat

Actual behaviour

Message is relayed to Discord chat

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: confirmedConfirmed bugs in EssentialsX.module: discordIssues or PRs for the EssentialsDiscord module

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions