Skip to content

EssentialsX Discord doesn't support Paper chat events #5243

@Envel-Nikita-Gutsenkov

Description

@Envel-Nikita-Gutsenkov

Type of bug

Compatibility issue, Other unexpected behaviour

/ess dump all output

EssentialsX 2.19.7

Error log (if applicable)

Bug description

Essentialsx discord ignores event.setCancelled(true) and still sends this message to discord

code example:
@EventHandler public void onPlayerChat(AsyncChatEvent event) { event.setCancelled(true); }

plugin example https://drive.google.com/file/d/1Ipjs0epv6tJE9LpXrM2-0a24GGqwLLMi/view?usp=sharing

Steps to reproduce

  1. Install example plugin and EssentialsX discord with discord hook
  2. Send any message (any message will be canceled)
  3. Check out the discord chat

Expected behaviour

Hmmm... don't send a message?

Actual behaviour

Message sent successfully xD

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