Package us.ajg0702.queue.api.events
Class PreQueueEvent
java.lang.Object
us.ajg0702.queue.api.events.PreQueueEvent
- All Implemented Interfaces:
Cancellable,Event
Called after all checks are made, right before a player is actually added to the queue.
If canceled, the player will not be added to the queue.
If you cancel this event, it is up to you to send a message telling the player why they were not added to the queue.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the player that is joining the queueGets the target QueueServer that the player is trying to queue forbooleanWhether this event is canceled.voidsetCancelled(boolean cancelled) Allows you to cancel or un-cancel this event
-
Constructor Details
-
PreQueueEvent
-
-
Method Details
-
getPlayer
Gets the player that is joining the queue- Returns:
-
getTarget
Gets the target QueueServer that the player is trying to queue for- Returns:
- The QueueServer that the player is trying to queue for
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableWhether this event is canceled.- Specified by:
isCancelledin interfaceCancellable- Returns:
- True if canceled. False if not.
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:CancellableAllows you to cancel or un-cancel this event- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- True to cancel the event, false to un-cancel
-