Class EventManager

java.lang.Object
dk.minepay.server.bukkit.managers.EventManager

public class EventManager extends Object
Manager for handling events.
  • Field Details

    • calledIds

      public static HashSet<String> calledIds
      The set of called store request IDs.
    • calledVoteIds

      public static HashSet<String> calledVoteIds
      The set of called vote IDs.
    • requestsOnline

      public static List<StoreRequest> requestsOnline
      The list of store requests that are online.
    • votesOnline

      public static List<Vote> votesOnline
      The list of votes that are online.
  • Constructor Details

    • EventManager

      public EventManager()
      Constructor for EventManager.
  • Method Details

    • callRequestEvent

      public static void callRequestEvent(StoreRequest storeRequest)
      Calls the appropriate event for the given store request.
      Parameters:
      storeRequest - the store request for which to call the event
    • callVoteEvent

      public static void callVoteEvent(Vote vote)
      Calls the appropriate vote event for the given vote.
      Parameters:
      vote - the vote for which to call the event
    • callOnlineVoteEvent

      public static void callOnlineVoteEvent(Vote vote)
      Calls the appropriate online vote event for the given vote.
      Parameters:
      vote - the vote for which to call the online event
    • callOnlineRequestEvent

      public static void callOnlineRequestEvent(StoreRequest storeRequest)
      Calls the appropriate join event for the given store request.
      Parameters:
      storeRequest - the store request for which to call the join event
    • getRequestsOnlineByUUID

      public static List<StoreRequest> getRequestsOnlineByUUID(UUID player)
      Gets the store requests that are online for the given player.
      Parameters:
      player - the player for which to get the store requests
      Returns:
      the store requests that are online for the given player
    • getVotesOnlineByUUID

      public static List<Vote> getVotesOnlineByUUID(UUID player)
      Gets the votes that are online for the given player.
      Parameters:
      player - the player for which to get the votes
      Returns:
      the votes that are online for the given player