public class BukkitPartiesPartyPreDeleteEvent extends BukkitPartiesEvent implements IPartyPreDeleteEvent, org.bukkit.event.Cancellable
| Constructor and Description |
|---|
BukkitPartiesPartyPreDeleteEvent(Party party,
DeleteCause cause,
PartyPlayer kickedPlayer,
PartyPlayer commandSender) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull DeleteCause |
getCause()
Get the cause of delete
|
@Nullable PartyPlayer |
getCommandSender()
Get the player who performed the command
|
@Nullable PartyPlayer |
getKickedPlayer()
Get the kicked player
|
@NotNull Party |
getParty()
Get the party that is getting cancelled
|
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, waitgetApi, setApipublic BukkitPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
@NotNull public @NotNull Party getParty()
IPartyPreDeleteEventgetParty in interface IPartyPreDeleteEventParty@NotNull public @NotNull DeleteCause getCause()
IPartyPreDeleteEventgetCause in interface IPartyPreDeleteEventDeleteCause of the delete@Nullable public @Nullable PartyPlayer getKickedPlayer()
IPartyPreDeleteEventgetKickedPlayer in interface IPartyPreDeleteEventPartyPlayer of the kicked player, returns null
if the delete cause is DeleteCause.DELETE or
DeleteCause.TIMEOUT@Nullable public @Nullable PartyPlayer getCommandSender()
IPartyPreDeleteEventgetCommandSender in interface IPartyPreDeleteEventPartyPlayer who did the command, returns
null if the delete cause is DeleteCause.TIMEOUTpublic 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 © 2022. All rights reserved.