Skip to content

ESSX Discord doesn't respect announceAdvancements gamerule when sending advancement message #4865

@JellyBlade

Description

@JellyBlade

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=638bef65de1c46f38e109c26a6d2a24a

Error log (if applicable)

No response

Bug description

Disabling the announceAdvancement gamerule still allows the advancement message through to Discord. Current server setup has two worlds, creative and survival.

I created a plugin to revoke advancements made while in creative mode (simplest solution without modifying Multiverse) and disabled announceAdvancements in the creative world, but the message gets displayed in the primary discord channel anyway.

Ideally, advancement messages would still be enabled for the survival world, so disabling advancement messages on the bridge entirely is something I'd like to avoid.

Checking for whether or not the player's current world has the announceAdvancements gamerule enabled before sending the message would prevent this behaviour from occurring.

Steps to reproduce

  1. Disable announceAdvancements gamerule.
  2. Complete an advancement.
  3. Message still gets displayed in the channel, even though the message for in-game chat is disabled.

Expected behaviour

Having the announceAdvancements gamerule disabled should prevent the message from appearing in discord.

Actual behaviour

The message is displayed regardless of the player's current world's announceAdvancements gamerule value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: discordIssues or PRs for the EssentialsDiscord moduletype: enhancementFeatures and feature requests.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions