-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException When Cancelling PlayerBedEnterEvent #2129
Comments
Have you considered actually cancelling the event? |
Cancelling the event gives the same error. Using Also, error isn't related to Bungee, really (on my part). Denizen uses BungeeCord API's ChatComponent to create chat messages (https://github.com/SpigotMC/BungeeCord/blob/master/chat/src/main/java/net/md_5/bungee/api/chat/BaseComponent.java). |
That error message implies that a chat packet was sent with a null message. |
I've added a catch that will prevent the Denizen-specific error from showing. This does not, however, correct the underlying issue in Spigot, which will need to be separately addressed by them. |
The output of
/version
on my server is:This server is running Paper version git-Paper-70 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
The output of
/version denizen
on my server is:Denizen version 1.1.2-SNAPSHOT (build 1701-REL)
The issue is:
When cancelling PlayerBedEnterEvent you get the following error: https://one.denizenscript.com/haste/64468
This was tested on a server with two plugins: Denizen and my plugin NoSleep. NoSleep does nothing but cancels the event (shown below).
To reproduce, install the NoSleep plugin provided at https://bcsn.us/downloads/NoSleep.jar (or create a plugin that cancels the event) and install Denizen. Attempt to sleep in a bed.
The text was updated successfully, but these errors were encountered: