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
ConstructorsConstructorDescriptionBungeePartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker) -
Method Summary
Modifier and TypeMethodDescription@NotNull LeaveCausegetCause()Get the leave cause@Nullable PartyPlayerGet the kicker@NotNull PartygetParty()Get the party@NotNull PartyPlayerGet the player that is leaveing the partybooleanIs the event cancelled?voidsetCancelled(boolean cancel) Set the event as cancelledMethods inherited from class com.alessiodp.parties.api.events.bungee.BungeePartiesEvent
getApi, setApiMethods inherited from class net.md_5.bungee.api.plugin.Event
postCallMethods 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.common.player.IPlayerPreLeaveEvent
isKickedMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
BungeePartiesPlayerPreLeaveEvent
public BungeePartiesPlayerPreLeaveEvent(PartyPlayer player, Party party, LeaveCause cause, PartyPlayer kicker)
-
-
Method Details
-
getPartyPlayer
Description copied from interface:IPlayerPreLeaveEventGet the player that is leaveing the party- Specified by:
getPartyPlayerin interfaceIPlayerPreLeaveEvent- Returns:
- the
PartyPlayer
-
getParty
Description copied from interface:IPlayerPreLeaveEventGet the party- Specified by:
getPartyin interfaceIPlayerPreLeaveEvent- Returns:
- the
Party
-
getCause
Description copied from interface:IPlayerPreLeaveEventGet the leave cause- Specified by:
getCausein interfaceIPlayerPreLeaveEvent- Returns:
- the
LeaveCauseof the event
-
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
-