Class GameEndEvent
java.lang.Object
org.bukkit.event.Event
dev.despical.tntrun.api.event.TNTRunEvent
dev.despical.tntrun.api.event.game.GameEvent
dev.despical.tntrun.api.event.game.GameEndEvent
Called after a TNTRun game finishes and enters the ending phase.
This event is fired after the winner and placements have been calculated, summary messages have been sent, players have been moved back to the start location, statistics have been applied, and arena records have been updated. At this point:
- Final scores and placements are finalized
- The winner and top-three rankings are available
- Players are still part of the game while the ending timer counts down
This event is useful for rewards, external integrations, post-game logging, or custom end-game effects.
API note: players may leave the game before the ending timer expires.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GameEndEvent
Constructs a new GameEndEvent.- Parameters:
game- the game that has finished
-
-
Method Details
-
getWinner
-
getTop3
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-