public class VelocityPartiesPlayerPreLeaveEvent extends VelocityPartiesEvent implements IPlayerPreLeaveEvent
| Constructor and Description |
|---|
VelocityPartiesPlayerPreLeaveEvent(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, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisKickedgetApi, setApipublic VelocityPartiesPlayerPreLeaveEvent(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 Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2022. All rights reserved.