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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isInvited
getApi, setApi
public BungeePartiesPlayerPreJoinEvent(PartyPlayer player, Party party, JoinCause cause, PartyPlayer inviter)
@NotNull public @NotNull PartyPlayer getPartyPlayer()
IPlayerPreJoinEvent
getPartyPlayer
in interface IPlayerPreJoinEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreJoinEvent
getParty
in interface IPlayerPreJoinEvent
Party
@NotNull public @NotNull JoinCause getCause()
IPlayerPreJoinEvent
getCause
in interface IPlayerPreJoinEvent
JoinCause
of the event@Nullable public @Nullable PartyPlayer getInviter()
IPlayerPreJoinEvent
getInviter
in interface IPlayerPreJoinEvent
PartyPlayer
of the inviter, null
if the player joined via join/ask commandpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.