Class LoginEvent

    • Method Detail

      • getCancelReason

        @Deprecated
        public String getCancelReason()
        Deprecated.
        use component methods instead
        Returns:
        reason to be displayed
      • setCancelReason

        @Deprecated
        public void setCancelReason​(String cancelReason)
        Deprecated.
        use component methods instead
        Parameters:
        cancelReason - reason to be displayed
      • getCancelReasonComponents

        @Deprecated
        public BaseComponent[] getCancelReasonComponents()
        Deprecated.
        use single component methods instead
        Returns:
        reason to be displayed
      • setCancelReason

        @Deprecated
        public void setCancelReason​(BaseComponent... cancelReason)
        Deprecated.
        use single component methods instead
        Parameters:
        cancelReason - reason to be displayed
      • isCancelled

        public boolean isCancelled()
        Cancelled state.
        Specified by:
        isCancelled in interface Cancellable
        Returns:
        the cancelled state of this event
      • getReason

        public BaseComponent getReason()
        Message to use when kicking if this event is canceled.
      • getLoginResult

        public LoginResult getLoginResult()
        The player's login result containing his textures
      • getConnection

        public PendingConnection getConnection()
        Connection attempting to login.
      • setCancelled

        public void setCancelled​(boolean cancelled)
        Cancelled state.
        Specified by:
        setCancelled in interface Cancellable
        Parameters:
        cancelled - the state to set
      • setReason

        public void setReason​(BaseComponent reason)
        Message to use when kicking if this event is canceled.
      • setLoginResult

        public void setLoginResult​(LoginResult loginResult)
        The player's login result containing his textures