Class VoteEvent

java.lang.Object
org.bukkit.event.Event
com.xSavior_of_God.HeroxVote.api.Events.VoteEvent

public class VoteEvent extends org.bukkit.event.Event

VoteEvent

This event is called when a player votes on a voting site.
Since:
2020-12-27
Version:
7.0.2
Author:
xSavior_of_God
  • Constructor Details

    • VoteEvent

      public VoteEvent(String nickname, String serviceName, Long now, Long whenVoted)
      Creates a new VoteEvent
      Parameters:
      nickname - the name of the person who voted
      serviceName - the name of the site where he voted
      now - the exact moment when the vote was received
      whenVoted - the exact moment when he voted
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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

      public String getNickname()
      Returns the name of the person who voted
      Returns:
      Player NickName
    • getServiceName

      public String getServiceName()
      Returns the NAME of the SITE where he voted
      Returns:
      Service Name
    • getTimeNow

      public Long getTimeNow()
      Returns the exact moment when the vote was received
      Returns:
      Time when the vote was received
    • getTimeWhenVoted

      public Long getTimeWhenVoted()
      Returns the exact moment when he voted
      Returns:
      Time when he voted
    • isCancelled

      public boolean isCancelled()
    • setCancelled

      public void setCancelled(boolean isCancelled)