public class BungeePartiesPlayerPreJoinEvent extends BungeePartiesEvent implements IPlayerPreJoinEvent
| Constructor and Description |
|---|
BungeePartiesPlayerPreJoinEvent(PartyPlayer player,
Party party,
JoinCause cause,
PartyPlayer inviter) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull JoinCause |
getCause()
Get the join cause
|
@Nullable PartyPlayer |
getInviter()
Get the inviter
|
@NotNull Party |
getParty()
Get the party
|
@NotNull PartyPlayer |
getPartyPlayer()
Get the player that is joining inside the party
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisInvitedgetApi, setApipublic BungeePartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreJoinEventgetPartyPlayer in interface IPlayerPreJoinEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreJoinEventgetParty in interface IPlayerPreJoinEventParty@NotNull public @NotNull JoinCause getCause()
IPlayerPreJoinEventgetCause in interface IPlayerPreJoinEventJoinCause of the event@Nullable public @Nullable PartyPlayer getInviter()
IPlayerPreJoinEventgetInviter in interface IPlayerPreJoinEventPartyPlayer of the inviter, null if the player joined via join/ask commandpublic boolean isCancelled()
CancellableisCancelled in interface Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true to cancelCopyright © 2023. All rights reserved.