Interface IPartyPreDeleteEvent
-
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPreDeleteEvent,BungeePartiesPartyPreDeleteEvent,VelocityPartiesPartyPreDeleteEvent
public interface IPartyPreDeleteEvent extends PartiesEvent, Cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull DeleteCausegetCause()Get the cause of delete@Nullable PartyPlayergetCommandSender()Get the player who performed the command@Nullable PartyPlayergetKickedPlayer()Get the kicked player@NotNull PartygetParty()Get the party that is getting cancelled-
Methods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelled
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Method Detail
-
getParty
@NotNull @NotNull Party getParty()
Get the party that is getting cancelled- Returns:
- the
Party
-
getCause
@NotNull @NotNull DeleteCause getCause()
Get the cause of delete- Returns:
- the
DeleteCauseof the delete
-
getKickedPlayer
@Nullable @Nullable PartyPlayer getKickedPlayer()
Get the kicked player- Returns:
- the
PartyPlayerof the kicked player, returnsnullif the delete cause isDeleteCause.DELETEorDeleteCause.TIMEOUT
-
getCommandSender
@Nullable @Nullable PartyPlayer getCommandSender()
Get the player who performed the command- Returns:
- the
PartyPlayerwho did the command, returnsnullif the delete cause isDeleteCause.TIMEOUT
-
-