Class PlayerKillPlayerEvent

All Implemented Interfaces:
ArenaEvent

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

  • Method Details Link icon

    • getDamaged Link icon

      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 Link icon

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

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

      @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 Link icon

      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 Link icon

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

      public static HandlerList getHandlerList()