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
-
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 TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerListReturns the name of the person who votedReturns the NAME of the SITE where he votedReturns the exact moment when the vote was receivedReturns the exact moment when he votedbooleanvoidsetCancelled(boolean isCancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
VoteEvent
Creates a new VoteEvent- Parameters:
nickname- the name of the person who votedserviceName- the name of the site where he votednow- the exact moment when the vote was receivedwhenVoted- the exact moment when he voted
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getNickname
Returns the name of the person who voted- Returns:
- Player NickName
-
getServiceName
Returns the NAME of the SITE where he voted- Returns:
- Service Name
-
getTimeNow
Returns the exact moment when the vote was received- Returns:
- Time when the vote was received
-
getTimeWhenVoted
Returns the exact moment when he voted- Returns:
- Time when he voted
-
isCancelled
public boolean isCancelled() -
setCancelled
public void setCancelled(boolean isCancelled)
-