Package net.fateuhc.plugin.api.events
Class UHCWinEvent
java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.UHCWinEvent
public class UHCWinEvent
extends org.bukkit.event.Event
Called when a solo player wins the game
Handles win and player data
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.event.HandlerListGet the handlers list.net.fateuhc.plugin.player.stats.WinnerGet the winner of the UHC Game.org.bukkit.entity.PlayerGet the winner of the UHC game as a player.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
UHCWinEvent
public UHCWinEvent()
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()Get the handlers list.- Specified by:
getHandlersin classorg.bukkit.event.Event- Returns:
HandlerList
-
getWinner
public net.fateuhc.plugin.player.stats.Winner getWinner()Get the winner of the UHC Game.- Returns:
Winner
-
getWinnerAsPlayer
public org.bukkit.entity.Player getWinnerAsPlayer()Get the winner of the UHC game as a player.- Returns:
Playerof the game.
-