Class PlayerDeathEvent

java.lang.Object
com.welcome234.pluginsystem.events.PlayerDeathEvent

public class PlayerDeathEvent extends Object
Called when a player dies
  • Constructor Details

  • Method Details

    • getPlayer

      public Player getPlayer()
      Gets the player that has died
      Returns:
      Player instance
    • getDeathCause

      public PlayerDeathEvent.DeathCause getDeathCause()
      Gets the cause of the death
      Returns:
      Death cause
    • getKillerEntity

      public Entity getKillerEntity()
      Gets the entity who killed this player, or null if the death was not caused by an entity
      Returns:
      Player instance
    • getKillerPlayer

      public Player getKillerPlayer()
      Gets the player who killed this player, or null if the death was not caused by a player
      Returns:
      Player instance