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
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
ConstructorsConstructorDescriptionPlayerEliminateEvent(org.bukkit.entity.Player player, Game game, int playersLeft) Constructs a new PlayerEliminateEvent. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class PlayerEvent
getUser, toStringMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerEliminateEvent
Constructs a new PlayerEliminateEvent.- Parameters:
player- the eliminated playergame- the game the player was eliminated fromplayersLeft- the number of players left after the elimination
-
-
Method Details
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-