public class BukkitPartiesPlayerPreInviteEvent extends BukkitPartiesEvent implements IPlayerPreInviteEvent, org.bukkit.event.Cancellable
| Constructor and Description |
|---|
BukkitPartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer,
PartyPlayer inviter,
Party party) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull PartyPlayer |
getInvitedPlayer()
Get the invited player
|
@Nullable PartyPlayer |
getInviter()
Get the inviter
|
@NotNull Party |
getParty()
Get the party
|
boolean |
isCancelled()
Is the event cancelled?
|
void |
setCancelled(boolean cancel)
Set the event as cancelled
|
getApi, getHandlerList, getHandlers, setApiclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApi, setApipublic BukkitPartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party)
@NotNull public @NotNull PartyPlayer getInvitedPlayer()
IPlayerPreInviteEventgetInvitedPlayer in interface IPlayerPreInviteEventPartyPlayer@Nullable public @Nullable PartyPlayer getInviter()
IPlayerPreInviteEventgetInviter in interface IPlayerPreInviteEventPartyPlayer@NotNull public @NotNull Party getParty()
IPlayerPreInviteEventgetParty in interface IPlayerPreInviteEventPartypublic boolean isCancelled()
CancellableisCancelled in interface org.bukkit.event.Cancellabletrue if the event is cancelledpublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface org.bukkit.event.Cancellablecancel - true to cancelCopyright © 2022. All rights reserved.