ESSX Discord doesn't respect announceAdvancements gamerule when sending advancement message #4865
Labels
module: discord
Issues or PRs for the EssentialsDiscord module
type: enhancement
Features and feature requests.
Milestone
Type of bug
Other unexpected behaviour
/ess dump all
outputhttps://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
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.
The text was updated successfully, but these errors were encountered: