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
  • Constructor Details

    • PartyInviteAcceptEvent

      public PartyInviteAcceptEvent(@NotNull @NotNull ZentrixParty party, @NotNull @NotNull UUID inviterId, @NotNull @NotNull UUID inviteeId)
  • Method Details

    • getParty

      @NotNull public @NotNull ZentrixParty getParty()
      The party the player would join.
    • getInviterId

      @NotNull public @NotNull UUID getInviterId()
      The leader who sent the invitation.
    • getInviteeId

      @NotNull public @NotNull UUID getInviteeId()
      The accepting player.
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()