Class PartyInviteAcceptEvent
java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.party.PartyInviteAcceptEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public final class PartyInviteAcceptEvent
extends ZentrixEvent
implements org.bukkit.event.Cancellable
Called when a player accepts a pending party invitation, before they join.
Cancel to keep them out; the invitation stays pending, and Zentrix sends no message, so
explain it to the player if needed. Zentrix still checks the party's size and the player's own
party afterwards. PartyMemberJoinEvent follows once they have joined. Main thread; only
fired while a listener is registered.
- Since:
- 1.8.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPartyInviteAcceptEvent(@NotNull ZentrixParty party, @NotNull UUID inviterId, @NotNull UUID inviteeId) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListGets the handler list for this event.@NotNull UUIDThe accepting player.@NotNull UUIDThe leader who sent the invitation.@NotNull ZentrixPartygetParty()The party the player would join.booleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PartyInviteAcceptEvent
public PartyInviteAcceptEvent(@NotNull @NotNull ZentrixParty party, @NotNull @NotNull UUID inviterId, @NotNull @NotNull UUID inviteeId)
-
-
Method Details
-
getParty
The party the player would join. -
getInviterId
The leader who sent the invitation. -
getInviteeId
The accepting player. -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()Description copied from class:ZentrixEventGets the handler list for this event.- Overrides:
getHandlersin classZentrixEvent- Returns:
- The handler list
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-