EssentialsX

EssentialsX

2M Downloads

Error in build 168

novrom1982 opened this issue ยท 3 comments

commented

Type of bug

Error in console

/ess dump all output

https://essentialsx.net/dump.html?bytebin=UxHWsQPlxS

Error log (if applicable)

No response

Bug description

After the update, an error appeared in the console when displaying a message in the Chat Game.

Steps to reproduce

When players in the game chat give the correct answer, an error appears in the console

Expected behaviour

There should only be a player response

Actual behaviour

Player's response and error

Could not pass event AsyncChatEvent to EssentialsChat v2.21.0-dev+169-69ed07a
java.lang.NullPointerException: null

Additional Information

No response

commented

My fork of Pwnfilter does this ,too.

commented

Just to repeat what I already wrote on Discord:

I tried the 171 dev build on Paper 1.21.4-173 with my chat filter plugin (which uses the Spigot chat event) and paper-chat-events: false. It works properly.

I think you still might have a problem with plugins that change the message contents when using the Paper AsyncChatEvent. But it turns out I can't use that after all. Besides changing chat messages, I need to cancel them, and the Paper event is too late; the Spigot event has already been fired and there's no way to cancel it. Back in the message preview days, I recall EssentialsX was caching some of the messages, and would undo changes to the message contents made by other plugins. I don't know if it's still doing that with the new Paper event processing.

commented

In the meantime while I investigate this issue, you may download the latest dev build and in that chat section of your config.yml: add paper-chat-events and set it to false, then restart your server

chat:
  # Whether EssentialsX should use Paper's modern chat event system in 1.16.5+.
  # This is required for modern chat features such as hover events and click events.
  # If you're experiencing issues with other plugins that use the chat event system, you can disable this.
  # You must restart your server after changing this setting.
  paper-chat-events: false