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

    Constructors
    Constructor
    Description
    PlayerVoteEvent(UUID voterUUID, UUID candidateUUID)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get 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

    Methods inherited from class java.lang.Object

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

    • PlayerVoteEvent

      public PlayerVoteEvent(UUID voterUUID, UUID candidateUUID)
  • Method Details

    • getVoterUUID

      public UUID getVoterUUID()
      Get the uuid of the player who voted.
      Returns:
      UUID of the player who voted
    • getCandidateUUID

      public UUID 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 class org.bukkit.event.Event
    • getHandlerList

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