Class PlayerVoteEvent
java.lang.Object
org.bukkit.event.Event
nl.minetopiasdb.api.events.player.PlayerVoteEvent
public class PlayerVoteEvent
extends org.bukkit.event.Event
This event is fired when someone votes in an election.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the uuid of the candidate the player voted for.static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Get the uuid of the player who voted.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerVoteEvent
-
-
Method Details
-
getVoterUUID
Get the uuid of the player who voted.- Returns:
- UUID of the player who voted
-
getCandidateUUID
Get the uuid of the candidate the player voted for.- Returns:
- UUID of the candidate
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-