found onPlayerDeathEvent(PlayerDeathEvent event) bug

A new status update as well as a first preview video of the new version are now available!
  • Hi @red51


    We had some strange behaviour where players would experience multiple death messages sometimes when they die - which clearly they should only get one death message.


    I have discovered the cause of this behaviour. The following method gets called when a player dies, however, when a player is already dead and their dead body is hit, this method gets called again for each hit on the dead body.


    Code
    public void onPlayerDeathEvent(PlayerDeathEvent event) {
    }

    The result of which is a player gets multiple deaths registered against them.



    This method stops getting called when the player who died respawns or disconnects. But whilst remaining on the Game Over screen this method keeps getting called (each time they are hit).



    Edit: Circumvented in the meantime with some locking logic... . so no rush to fix, just thought I would let you know about it. Maybe it's intentional behaviour? ^^

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!