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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isKicked
getApi, setApi
public BukkitPartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreLeaveEvent
getPartyPlayer
in interface IPlayerPreLeaveEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreLeaveEvent
getParty
in interface IPlayerPreLeaveEvent
Party
@NotNull public @NotNull LeaveCause getCause()
IPlayerPreLeaveEvent
getCause
in interface IPlayerPreLeaveEvent
LeaveCause
of the event@Nullable public @Nullable PartyPlayer getKicker()
IPlayerPreLeaveEvent
getKicker
in interface IPlayerPreLeaveEvent
PartyPlayer
that has kicked the player, returns null
if IPlayerPreLeaveEvent.isKicked()
returns false
public boolean isCancelled()
Cancellable
isCancelled
in interface org.bukkit.event.Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface org.bukkit.event.Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.