public class BukkitPartiesPlayerPreLeaveEvent extends BukkitPartiesEvent implements IPlayerPreLeaveEvent, org.bukkit.event.Cancellable
| Constructor and Description |
|---|
BukkitPartiesPlayerPreLeaveEvent(PartyPlayer player,
Party party,
LeaveCause cause,
PartyPlayer kicker) |
| 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
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, getHandlerList, getHandlers, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisKickedgetApi, setApipublic BukkitPartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreLeaveEventgetPartyPlayer in interface IPlayerPreLeaveEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreLeaveEventgetParty in interface IPlayerPreLeaveEventParty@NotNull public @NotNull LeaveCause getCause()
IPlayerPreLeaveEventgetCause in interface IPlayerPreLeaveEventLeaveCause of the event@Nullable public @Nullable PartyPlayer getKicker()
IPlayerPreLeaveEventgetKicker in interface IPlayerPreLeaveEventPartyPlayer that has kicked the player, returns null if IPlayerPreLeaveEvent.isKicked() returns falsepublic boolean isCancelled()
CancellableisCancelled in interface org.bukkit.event.Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface org.bukkit.event.Cancellablecancel - true to cancelCopyright © 2023. All rights reserved.