Class BungeePartiesPlayerPreLeaveEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
-
- com.alessiodp.parties.api.events.bungee.player.BungeePartiesPlayerPreLeaveEvent
-
- All Implemented Interfaces:
Cancellable,IPlayerPreLeaveEvent,PartiesEvent
public class BungeePartiesPlayerPreLeaveEvent extends BungeePartiesEvent implements IPlayerPreLeaveEvent
-
-
Constructor Summary
Constructors Constructor Description BungeePartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull LeaveCausegetCause()Get the leave cause@Nullable PartyPlayergetKicker()Get the kicker@NotNull PartygetParty()Get the party@NotNull PartyPlayergetPartyPlayer()Get the player that is leaveing the partybooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelled-
Methods inherited from class com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
getApi, 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.common.player.IPlayerPreLeaveEvent
isKicked
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
BungeePartiesPlayerPreLeaveEvent
public BungeePartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
-
-
Method Detail
-
getPartyPlayer
@NotNull public @NotNull PartyPlayer getPartyPlayer()
Description copied from interface:IPlayerPreLeaveEventGet the player that is leaveing the party- Specified by:
getPartyPlayerin interfaceIPlayerPreLeaveEvent- Returns:
- the
PartyPlayer
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPlayerPreLeaveEventGet the party- Specified by:
getPartyin interfaceIPlayerPreLeaveEvent- Returns:
- the
Party
-
getCause
@NotNull public @NotNull LeaveCause getCause()
Description copied from interface:IPlayerPreLeaveEventGet the leave cause- Specified by:
getCausein interfaceIPlayerPreLeaveEvent- Returns:
- the
LeaveCauseof the event
-
getKicker
@Nullable public @Nullable PartyPlayer getKicker()
Description copied from interface:IPlayerPreLeaveEventGet the kicker- Specified by:
getKickerin interfaceIPlayerPreLeaveEvent- Returns:
- the
PartyPlayerthat has kicked the player, returnsnullifIPlayerPreLeaveEvent.isKicked()returnsfalse
-
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
-
-