Class StealAttemptEvent

All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class StealAttemptEvent extends CancellableStealABlockEvent
Fired when a player attempts to begin stealing a block from a rival plot, after all registered StealRules have allowed the attempt.
  • Constructor Details

    • StealAttemptEvent

      public StealAttemptEvent(@NotNull @NotNull org.bukkit.entity.Player thief, @NotNull @NotNull UUID victimId, @NotNull @NotNull StoredBlockView targetBlock, int durationSeconds, @NotNull @NotNull Cause cause)
  • Method Details

    • getThief

      @NotNull public @NotNull org.bukkit.entity.Player getThief()
    • getVictimId

      @NotNull public @NotNull UUID getVictimId()
    • getTargetBlock

      @NotNull public @NotNull StoredBlockView getTargetBlock()
    • getDurationSeconds

      public int getDurationSeconds()
    • setDurationSeconds

      public void setDurationSeconds(int durationSeconds)
    • getDenyMessage

      @Nullable public @Nullable String getDenyMessage()
    • deny

      public void deny(@Nullable @Nullable String message)
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

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