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, setApi
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApi, setApi
public BukkitPartiesPlayerPreInviteEvent(PartyPlayer invitedPlayer, PartyPlayer inviter, Party party)
@NotNull public @NotNull PartyPlayer getInvitedPlayer()
IPlayerPreInviteEvent
getInvitedPlayer
in interface IPlayerPreInviteEvent
PartyPlayer
@Nullable public @Nullable PartyPlayer getInviter()
IPlayerPreInviteEvent
getInviter
in interface IPlayerPreInviteEvent
PartyPlayer
@NotNull public @NotNull Party getParty()
IPlayerPreInviteEvent
getParty
in interface IPlayerPreInviteEvent
Party
public boolean isCancelled()
Cancellable
isCancelled
in interface org.bukkit.event.Cancellable
true
if the event is cancelledpublic void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface org.bukkit.event.Cancellable
cancel
- true
to cancelCopyright © 2023. All rights reserved.