Skip to content

Ignore cancelled PlayerDeathEvents #6179

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

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from
Open

Conversation

Jsinco
Copy link

@Jsinco Jsinco commented Jun 27, 2025

Information

This PR closes #6178 .

Details

Proposed feature:

Essentials should ignore cancelled PlayerDeathEvents.

Environments tested:

OS: Linux

Java version: 21

  • Most recent Paper version (1.21.6, @aa6cd74 build: 42)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:

@Jsinco Jsinco changed the title Ignored cancelled PlayerDeathEvents Ignore cancelled PlayerDeathEvents Jun 27, 2025
@JRoy
Copy link
Member

JRoy commented Jun 27, 2025

any reason not to listen on HIGHEST?

@Jsinco
Copy link
Author

Jsinco commented Jun 27, 2025

I left it on HIGH so other plugins could override Essentials even if the config option for ess.getSettings().areDeathMessagesEnabled() is disabled.

if (!ess.getSettings().areDeathMessagesEnabled()) {
     event.setDeathMessage("");
}

@JRoy
Copy link
Member

JRoy commented Jun 28, 2025

lgtm! will merge for the next version

@JRoy JRoy added this to the 2.22.0 milestone Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore cancelled PlayerDeathEvent
2 participants