Expected behavior
PlayerDeathEvent should only be called once
Observed/Actual behavior
PlayerDeathEvent is called twice
Steps/models to reproduce
Listen to an EntityDamageEvent and PlayerDeathEvent.
if the entity in the damage event is a player, cancel the event and call entity.setHealth(0);
Take fall damage or something so that you die, and the player death event will be called twice
Plugin and Datapack List
Irrelevant, confirmed by @lynxplay
Paper version
This server is running Paper version 1.21.4-164-main@8eb8e44 (2025-02-16T22:13:26Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are 8 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.1-119-7cd4f2c (MC: 1.21.1)
Other
Did not used to happen on 1.21.1 or earlier
Expected behavior
PlayerDeathEvent should only be called once
Observed/Actual behavior
PlayerDeathEvent is called twice
Steps/models to reproduce
Listen to an EntityDamageEvent and PlayerDeathEvent.
if the entity in the damage event is a player, cancel the event and call entity.setHealth(0);
Take fall damage or something so that you die, and the player death event will be called twice
Plugin and Datapack List
Irrelevant, confirmed by @lynxplay
Paper version
This server is running Paper version 1.21.4-164-main@8eb8e44 (2025-02-16T22:13:26Z) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
You are 8 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: 1.21.1-119-7cd4f2c (MC: 1.21.1)
Other
Did not used to happen on 1.21.1 or earlier