Class PlayerEliminatedEvent

java.lang.Object
org.bukkit.event.Event

public class PlayerEliminatedEvent extends MatchEvent
Called when a player is eliminated from a match.

Elimination can have multiple causes (kill by another player, void, environment, etc.). After this event fires, the PlayerManager should convert the victim to a GameSpectator.

  • Constructor Details

  • Method Details

    • getVictim

      public GamePlayer getVictim()
      Returns:
      the player who was eliminated.
    • getKiller

      public GamePlayer getKiller()
      Returns:
      the player who dealt the final blow, or null if environmental.
    • getCause

      Returns:
      the cause of this elimination.
    • isKilledByPlayer

      public boolean isKilledByPlayer()
      Returns:
      true if this was a PvP kill.
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class MatchEvent
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()