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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
@NotNull public @NotNull Party getParty()
IPartyPreDeleteEvent
getParty
in interface IPartyPreDeleteEvent
Party
@NotNull public @NotNull DeleteCause getCause()
IPartyPreDeleteEvent
getCause
in interface IPartyPreDeleteEvent
DeleteCause
of the delete@Nullable public @Nullable PartyPlayer getKickedPlayer()
IPartyPreDeleteEvent
getKickedPlayer
in interface IPartyPreDeleteEvent
PartyPlayer
of the kicked player, returns null
if the delete cause is DeleteCause.DELETE
or
DeleteCause.TIMEOUT
@Nullable public @Nullable PartyPlayer getCommandSender()
IPartyPreDeleteEvent
getCommandSender
in interface IPartyPreDeleteEvent
PartyPlayer
who did the command, returns
null
if the delete cause is DeleteCause.TIMEOUT
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.