Class EventManager
java.lang.Object
dk.minepay.server.bukkit.managers.EventManager
Manager for handling events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe set of called store request IDs.The set of called vote IDs.static List<StoreRequest> The list of store requests that are online.The list of votes that are online. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcallOnlineRequestEvent(StoreRequest storeRequest) Calls the appropriate join event for the given store request.static voidcallOnlineVoteEvent(Vote vote) Calls the appropriate online vote event for the given vote.static voidcallRequestEvent(StoreRequest storeRequest) Calls the appropriate event for the given store request.static voidcallVoteEvent(Vote vote) Calls the appropriate vote event for the given vote.static List<StoreRequest> getRequestsOnlineByUUID(UUID player) Gets the store requests that are online for the given player.getVotesOnlineByUUID(UUID player) Gets the votes that are online for the given player.
-
Field Details
-
calledIds
The set of called store request IDs. -
calledVoteIds
The set of called vote IDs. -
requestsOnline
The list of store requests that are online. -
votesOnline
The list of votes that are online.
-
-
Constructor Details
-
EventManager
public EventManager()Constructor for EventManager.
-
-
Method Details
-
callRequestEvent
Calls the appropriate event for the given store request.- Parameters:
storeRequest- the store request for which to call the event
-
callVoteEvent
Calls the appropriate vote event for the given vote.- Parameters:
vote- the vote for which to call the event
-
callOnlineVoteEvent
Calls the appropriate online vote event for the given vote.- Parameters:
vote- the vote for which to call the online event
-
callOnlineRequestEvent
Calls the appropriate join event for the given store request.- Parameters:
storeRequest- the store request for which to call the join event
-
getRequestsOnlineByUUID
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
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
-