Class PreQueueEvent

  • All Implemented Interfaces:
    Cancellable, Event

    public class PreQueueEvent
    extends java.lang.Object
    implements Event, Cancellable
    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.
    • Method Detail

      • getPlayer

        public AdaptedPlayer getPlayer()
        Gets the player that is joining the queue
        Returns:
      • getTarget

        public QueueServer 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: Cancellable
        Whether this event is canceled.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        True if canceled. False if not.
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Description copied from interface: Cancellable
        Allows you to cancel or un-cancel this event
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - True to cancel the event, false to un-cancel