Class VotePartyEvent
java.lang.Object
org.bukkit.event.Event
com.xSavior_of_God.HeroxVote.api.Events.VotePartyEvent
public class VotePartyEvent
extends org.bukkit.event.Event
VotePartyEvent
This event is called when a vote party is triggered.- Since:
- 2021-01-12
- 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.HandlerListcom.xSavior_of_God.HeroxVote.party.PartygetParty()booleanvoidsetCancelled(boolean isCancelled) voidsetPartyActions(Map<Integer, com.xSavior_of_God.HeroxVote.party.PartyActions> partyActions) Update party actions.Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
VotePartyEvent
public VotePartyEvent(com.xSavior_of_God.HeroxVote.party.Party party) - Parameters:
party- object of the party
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getParty
public com.xSavior_of_God.HeroxVote.party.Party getParty()- Returns:
- party
-
getPartyActions
- Returns:
- party actions
-
setPartyActions
public void setPartyActions(Map<Integer, com.xSavior_of_God.HeroxVote.party.PartyActions> partyActions) Update party actions. This will update the party actions in the cache for this session, so it will not be saved in the file and will be lost when the server restarts.- Parameters:
partyActions- Map of party actions
-
isCancelled
public boolean isCancelled()- Returns:
- isCancelled
-
setCancelled
public void setCancelled(boolean isCancelled) - Parameters:
isCancelled- boolean
-