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
Constructors Constructor Description VelocityPartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull JoinCausegetCause()Get the join cause@Nullable PartyPlayergetInviter()Get the inviter@NotNull PartygetParty()Get the party@NotNull PartyPlayergetPartyPlayer()Get the player that is joining inside the partybooleanisCancelled()Is the event cancelled?voidsetCancelled(boolean cancel)Set the event as cancelled-
Methods inherited from class com.alessiodp.parties.api.events.velocity.VelocityPartiesEvent
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.IPlayerPreJoinEvent
isInvited
-
Methods inherited from interface com.alessiodp.parties.api.events.PartiesEvent
getApi, setApi
-
-
-
-
Constructor Detail
-
VelocityPartiesPlayerPreJoinEvent
public VelocityPartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter)
-
-
Method Detail
-
getPartyPlayer
@NotNull public @NotNull PartyPlayer getPartyPlayer()
Description copied from interface:IPlayerPreJoinEventGet the player that is joining inside the party- Specified by:
getPartyPlayerin interfaceIPlayerPreJoinEvent- Returns:
- the
PartyPlayer
-
getParty
@NotNull public @NotNull Party getParty()
Description copied from interface:IPlayerPreJoinEventGet the party- Specified by:
getPartyin interfaceIPlayerPreJoinEvent- Returns:
- the
Party
-
getCause
@NotNull public @NotNull JoinCause getCause()
Description copied from interface:IPlayerPreJoinEventGet the join cause- Specified by:
getCausein interfaceIPlayerPreJoinEvent- Returns:
- the
JoinCauseof the event
-
getInviter
@Nullable public @Nullable PartyPlayer 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
-
-