Class PlayerEliminateEvent

java.lang.Object
org.bukkit.event.Event
dev.despical.tntrun.api.event.TNTRunEvent
dev.despical.tntrun.api.event.player.PlayerEvent
dev.despical.tntrun.api.event.player.PlayerEliminateEvent

public class PlayerEliminateEvent extends PlayerEvent
Called after a player is eliminated from an active TNTRun game.

The player has already been marked as a spectator when this event is fired. Use this event for rewards, custom announcements, analytics, or external integrations that need to react to eliminations.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerEliminateEvent(org.bukkit.entity.Player player, Game game, int playersLeft)
    Constructs a new PlayerEliminateEvent.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     

    Methods inherited from class PlayerEvent

    getUser, toString

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PlayerEliminateEvent

      public PlayerEliminateEvent(org.bukkit.entity.Player player, Game game, int playersLeft)
      Constructs a new PlayerEliminateEvent.
      Parameters:
      player - the eliminated player
      game - the game the player was eliminated from
      playersLeft - the number of players left after the elimination
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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