Class ClaimChangeEvent

java.lang.Object
org.bukkit.event.Event
net.mathias2246.buildmc.api.event.CustomEvent
net.mathias2246.buildmc.api.event.claims.ClaimChangeEvent

public class ClaimChangeEvent extends CustomEvent
Called when a claim setting was changed. This event is fired synchronously on the main server thread. Plugins can attach optional metadata to this event via CustomEvent.putMetadata(String, Object).
  • Constructor Details

    • ClaimChangeEvent

      public ClaimChangeEvent(@NotNull @NotNull Claim claim, @NotNull @NotNull ClaimChangeEvent.ClaimSetting setting)
      Constructs a new ClaimChangeEvent.
      Parameters:
      claim - the claim that was changed
      setting - what setting was changed
  • Method Details

    • getClaim

      @NotNull public @NotNull Claim getClaim()
      Gets the claim that was changed.
      Returns:
      The claim that was changed
    • getSetting

      @NotNull public @NotNull ClaimChangeEvent.ClaimSetting getSetting()
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: CustomEvent
      Returns the HandlerList for this event type.

      Bukkit requires each concrete event class to define its own static HandlerList instance and to return it from this method. This is necessary for Bukkit’s event registration and dispatch system.

      Specified by:
      getHandlers in class CustomEvent
      Returns:
      the handler list for this event (never null)
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Gets the static list of handlers for this event type.

      Required by the Bukkit event system for registration.

      Returns:
      the handler list