public interface IPartyPreDeleteEvent extends PartiesEvent, Cancellable
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
|
getApi, setApi
isCancelled, setCancelled
@NotNull @NotNull Party getParty()
Party
@NotNull @NotNull DeleteCause getCause()
DeleteCause
of the delete@Nullable @Nullable PartyPlayer getKickedPlayer()
PartyPlayer
of the kicked player, returns null
if the delete cause is DeleteCause.DELETE
or
DeleteCause.TIMEOUT
@Nullable @Nullable PartyPlayer getCommandSender()
PartyPlayer
who did the command, returns
null
if the delete cause is DeleteCause.TIMEOUT
Copyright © 2023. All rights reserved.