Interface IPlayerPreLeaveEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPlayerPreLeaveEvent,BungeePartiesPlayerPreLeaveEvent,VelocityPartiesPlayerPreLeaveEvent
public interface IPlayerPreLeaveEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @NotNull LeaveCausegetCause()Get the leave cause@Nullable PartyPlayergetKicker()Get the kicker@NotNull PartygetParty()Get the party@NotNull PartyPlayergetPartyPlayer()Get the player that is leaveing the partydefault booleanisKicked()Deprecated.use getCause() instead-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getPartyPlayer
@NotNull @NotNull PartyPlayer getPartyPlayer()
Get the player that is leaveing the party- Returns:
- the
PartyPlayer
-
getCause
@NotNull @NotNull LeaveCause getCause()
Get the leave cause- Returns:
- the
LeaveCauseof the event
-
isKicked
@Deprecated default boolean isKicked()
Deprecated.use getCause() insteadHas the player been kicked?- Returns:
trueif the player has been kicked
-
getKicker
@Nullable @Nullable PartyPlayer getKicker()
Get the kicker- Returns:
- the
PartyPlayerthat has kicked the player, returnsnullifisKicked()returnsfalse
-
-