Interface IPartyPreDeleteEvent
- All Superinterfaces:
Cancellable,PartiesEvent
- All Known Implementing Classes:
BukkitPartiesPartyPreDeleteEvent,BungeePartiesPartyPreDeleteEvent,VelocityPartiesPartyPreDeleteEvent
-
Method Summary
Modifier and TypeMethodDescription@NotNull DeleteCausegetCause()Get the cause of delete@Nullable PartyPlayerGet the player who performed the command@Nullable PartyPlayerGet the kicked player@NotNull PartygetParty()Get the party that is getting cancelledMethods inherited from interface com.alessiodp.parties.api.events.Cancellable
isCancelled, setCancelledMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Method Details
-
getParty
Get the party that is getting cancelled- Returns:
- the
Party
-
getCause
Get the cause of delete- Returns:
- the
DeleteCauseof the delete
-
getKickedPlayer
Get the kicked player- Returns:
- the
PartyPlayerof the kicked player, returnsnullif the delete cause isDeleteCause.DELETEorDeleteCause.TIMEOUT
-
getCommandSender
Get the player who performed the command- Returns:
- the
PartyPlayerwho did the command, returnsnullif the delete cause isDeleteCause.TIMEOUT
-