Class BukkitPartiesPartyPreDeleteEvent
java.lang.Object
org.bukkit.event.Event
com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
com.alessiodp.parties.api.events.bukkit.party.BukkitPartiesPartyPreDeleteEvent
- All Implemented Interfaces:
Cancellable,IPartyPreDeleteEvent,PartiesEvent,org.bukkit.event.Cancellable
public class BukkitPartiesPartyPreDeleteEvent
extends BukkitPartiesEvent
implements IPartyPreDeleteEvent, org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBukkitPartiesPartyPreDeleteEvent(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.bukkit.BukkitPartiesEvent
getApi, getHandlerList, getHandlers, setApiMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods 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
-
BukkitPartiesPartyPreDeleteEvent
public BukkitPartiesPartyPreDeleteEvent(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- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- 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- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel-trueto cancel
-