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
    Constructor
    Description
    VotePartyEvent(com.xSavior_of_God.HeroxVote.party.Party party)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    com.xSavior_of_God.HeroxVote.party.Party
     
    Map<Integer,com.xSavior_of_God.HeroxVote.party.PartyActions>
     
    boolean
     
    void
    setCancelled(boolean isCancelled)
     
    void
    setPartyActions(Map<Integer,com.xSavior_of_God.HeroxVote.party.PartyActions> partyActions)
    Update party actions.

    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

    • 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:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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

      public com.xSavior_of_God.HeroxVote.party.Party getParty()
      Returns:
      party
    • getPartyActions

      public Map<Integer,com.xSavior_of_God.HeroxVote.party.PartyActions> 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