Class PartyDisbandEvent

java.lang.Object
org.bukkit.event.Event
dev.itsharshxd.zentrix.api.events.ZentrixEvent
dev.itsharshxd.zentrix.api.events.party.PartyDisbandEvent

public class PartyDisbandEvent extends ZentrixEvent
Called when a party is disbanded.

At the time this event fires, the party still contains all members so listeners can inspect the final state.

Since:
1.2.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    PartyDisbandEvent(@NotNull ZentrixParty party, @NotNull UUID disbandedBy)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull UUID
    Gets the UUID of the player who disbanded the party.
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
    Gets the handler list for this event.
    @NotNull Set<UUID>
    Gets all members who were in the party at the time of disbanding.
    @NotNull ZentrixParty
    Gets the party that is being disbanded.

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PartyDisbandEvent

      public PartyDisbandEvent(@NotNull @NotNull ZentrixParty party, @NotNull @NotNull UUID disbandedBy)
  • Method Details

    • getParty

      @NotNull public @NotNull ZentrixParty getParty()
      Gets the party that is being disbanded.
      Returns:
      The party
    • getDisbandedBy

      @NotNull public @NotNull UUID getDisbandedBy()
      Gets the UUID of the player who disbanded the party.
      Returns:
      The disbander's UUID (typically the leader)
    • getMembers

      @NotNull public @NotNull Set<UUID> getMembers()
      Gets all members who were in the party at the time of disbanding.
      Returns:
      An unmodifiable set of member UUIDs
    • 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

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