Class VelocityPartiesPartyPreDeleteEvent
java.lang.Object
com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
com.alessiodp.parties.api.events.velocity.party.VelocityPartiesPartyPreDeleteEvent
- All Implemented Interfaces:
Cancellable,IPartyPreDeleteEvent,PartiesEvent
public class VelocityPartiesPartyPreDeleteEvent
extends VelocityPartiesEvent
implements IPartyPreDeleteEvent
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender) -
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 cancelledbooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledMethods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
getApi, setApiMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
VelocityPartiesPartyPreDeleteEvent
public VelocityPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
-
-
Method Details
-
getParty
Description copied from interface:IPartyPreDeleteEventGet the party that is getting cancelled- Specified by:
getPartyin interfaceIPartyPreDeleteEvent- Returns:
- the
Party
-
getCause
Description copied from interface:IPartyPreDeleteEventGet the cause of delete- Specified by:
getCausein interfaceIPartyPreDeleteEvent- Returns:
- the
DeleteCauseof the delete
-
getKickedPlayer
Description copied from interface:IPartyPreDeleteEventGet the kicked player- Specified by:
getKickedPlayerin interfaceIPartyPreDeleteEvent- Returns:
- the
PartyPlayerof the kicked player, returnsnullif the delete cause isDeleteCause.DELETEorDeleteCause.TIMEOUT
-
getCommandSender
Description copied from interface:IPartyPreDeleteEventGet the player who performed the command- Specified by:
getCommandSenderin interfaceIPartyPreDeleteEvent- Returns:
- the
PartyPlayerwho did the command, returnsnullif the delete cause isDeleteCause.TIMEOUT
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableIs the event cancelled?- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif the event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSet the event as cancelled- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueto cancel
-