public interface IPlayerPreLeaveEvent extends PartiesEvent, Cancellable
| Modifier and Type | Method and Description |
|---|---|
@NotNull LeaveCause |
getCause()
Get the leave cause
|
@Nullable PartyPlayer |
getKicker()
Get the kicker
|
@NotNull Party |
getParty()
Get the party
|
@NotNull PartyPlayer |
getPartyPlayer()
Get the player that is leaveing the party
|
default boolean |
isKicked()
Deprecated.
use getCause() instead
|
getApi, setApiisCancelled, setCancelled@NotNull @NotNull PartyPlayer getPartyPlayer()
PartyPlayer@NotNull @NotNull LeaveCause getCause()
LeaveCause of the event@Deprecated default boolean isKicked()
true if the player has been kicked@Nullable @Nullable PartyPlayer getKicker()
PartyPlayer that has kicked the player, returns null if isKicked() returns falseCopyright © 2022. All rights reserved.