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
-
-
Constructor Summary
Constructors Constructor Description BukkitPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
-
Method Summary
All Methods Instance Methods Concrete 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 cancelledbooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelled-
Methods inherited from class com.alessiodp.parties.api.events.bukkit.BukkitPartiesEvent
getApi, getHandlerList, getHandlers, setApi
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BukkitPartiesPartyPreDeleteEvent
public BukkitPartiesPartyPreDeleteEvent(Party party, DeleteCause cause, PartyPlayer kickedPlayer, PartyPlayer commandSender)
-
-
Method Detail
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPartyPreDeleteEventGet the party that is getting cancelled- Specified by:
getPartyin interfaceIPartyPreDeleteEvent- Returns:
- the
Party
-
getCause
@NotNull public @NotNull DeleteCause getCause()
Description copied from interface:IPartyPreDeleteEventGet the cause of delete- Specified by:
getCausein interfaceIPartyPreDeleteEvent- Returns:
- the
DeleteCauseof the delete
-
getKickedPlayer
@Nullable public @Nullable PartyPlayer 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
@Nullable public @Nullable PartyPlayer 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
-
-