Interface IPlayerPreLeaveEvent

    • Method Detail

      • getPartyPlayer

        @NotNull
        @NotNull PartyPlayer getPartyPlayer()
        Get the player that is leaveing the party
        Returns:
        the PartyPlayer
      • getParty

        @NotNull
        @NotNull Party getParty()
        Get the party
        Returns:
        the Party
      • getCause

        @NotNull
        @NotNull LeaveCause getCause()
        Get the leave cause
        Returns:
        the LeaveCause of the event
      • isKicked

        @Deprecated
        default boolean isKicked()
        Deprecated.
        use getCause() instead
        Has the player been kicked?
        Returns:
        true if the player has been kicked
      • getKicker

        @Nullable
        @Nullable PartyPlayer getKicker()
        Get the kicker
        Returns:
        the PartyPlayer that has kicked the player, returns null if isKicked() returns false