Class VelocityPartiesPlayerPreJoinEvent
java.lang.Object
com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
com.alessiodp.parties.api.events.velocity.player.VelocityPartiesPlayerPreJoinEvent
- All Implemented Interfaces:
Cancellable,IPlayerPreJoinEvent,PartiesEvent
public class VelocityPartiesPlayerPreJoinEvent
extends VelocityPartiesEvent
implements IPlayerPreJoinEvent
-
Constructor Summary
ConstructorsConstructorDescriptionVelocityPartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter) -
Method Summary
Modifier and TypeMethodDescription@NotNull JoinCausegetCause()Get the join cause@Nullable PartyPlayerGet the inviter@NotNull PartygetParty()Get the party@NotNull PartyPlayerGet the player that is joining inside the partybooleanIs 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.common.player.IPlayerPreJoinEvent
isInvitedMethods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
Constructor Details
-
VelocityPartiesPlayerPreJoinEvent
public VelocityPartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter)
-
-
Method Details
-
getPartyPlayer
Description copied from interface:IPlayerPreJoinEventGet the player that is joining inside the party- Specified by:
getPartyPlayerin interfaceIPlayerPreJoinEvent- Returns:
- the
PartyPlayer
-
getParty
Description copied from interface:IPlayerPreJoinEventGet the party- Specified by:
getPartyin interfaceIPlayerPreJoinEvent- Returns:
- the
Party
-
getCause
Description copied from interface:IPlayerPreJoinEventGet the join cause- Specified by:
getCausein interfaceIPlayerPreJoinEvent- Returns:
- the
JoinCauseof the event
-
getInviter
Description copied from interface:IPlayerPreJoinEventGet the inviter- Specified by:
getInviterin interfaceIPlayerPreJoinEvent- Returns:
- the
PartyPlayerof the inviter,nullif the player joined via join/ask command
-
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
-