Class PlayerKillPlayerEvent

All Implemented Interfaces:
ArenaEvent

public class PlayerKillPlayerEvent extends PlayerIngameDeathEvent
Gets called when someone is killing someone else during a game
  • Constructor Details

  • Method Details

    • getDamaged

      public Player getDamaged()
      Returns the player that has been killed by PlayerEvent.getPlayer().

      This method returns the same exact player as PlayerEvent.getPlayer().

      Returns:
      The killed/damaged player
    • getKiller

      public Player getKiller()
      Returns the player who killed the other player.
      Returns:
      The killer
    • getCause

      public EntityDamageEvent.DamageCause getCause()
      Returns the cause of his death.
      Returns:
      The last DamageCause he received
    • getProjectile

      @Nullable public @Nullable Projectile getProjectile()
      Returns the projectile that the PlayerEvent.getPlayer() might have used to kill the player.

      Might return null, meaning that he didn't use any projectile

      Returns:
      The projectile that was used to kill him
    • getDamageInfo

      public PlayerDamageInfo getDamageInfo()
      Get the past damage info of when the damager directly or indirectly damaged the killed player of this event.
      Returns:
      The related damage info of this event
    • getHandlers

      public HandlerList getHandlers()
      Overrides:
      getHandlers in class PlayerIngameDeathEvent
    • getHandlerList

      public static HandlerList getHandlerList()