Class PunishmentIssuedEvent
java.lang.Object
org.bukkit.event.Event
fr.mathildeuh.youneedme.api.event.PunishmentIssuedEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PunishmentIssuedEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Fired before a ban/mute/warn/kick is persisted and enforced.
punishment.id() is not yet
assigned at this point (it is still 0); cancelling stops the punishment entirely.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListbooleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PunishmentIssuedEvent
-
-
Method Details
-
getPunishment
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-