Class StealAttemptEvent
java.lang.Object
org.bukkit.event.Event
dev.yowsef.stealablock.api.event.StealABlockEvent
dev.yowsef.stealablock.api.event.CancellableStealABlockEvent
dev.yowsef.stealablock.api.event.steal.StealAttemptEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when a player attempts to begin stealing a block from a rival plot,
after all registered
StealRules have allowed the attempt.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionStealAttemptEvent(@NotNull org.bukkit.entity.Player thief, @NotNull UUID victimId, @NotNull StoredBlockView targetBlock, int durationSeconds, @NotNull Cause cause) -
Method Summary
Modifier and TypeMethodDescriptionvoid@Nullable Stringintstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@NotNull StoredBlockView@NotNull org.bukkit.entity.PlayergetThief()@NotNull UUIDvoidsetDurationSeconds(int durationSeconds) Methods inherited from class CancellableStealABlockEvent
isCancelled, setCancelledMethods inherited from class StealABlockEvent
getCauseMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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
-
getTargetBlock
-
getDurationSeconds
public int getDurationSeconds() -
setDurationSeconds
public void setDurationSeconds(int durationSeconds) -
getDenyMessage
-
deny
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-