Class TownBlockPermissionChangeEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.TownBlockPermissionChangeEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownBlockPermissionChangeEvent
(@NotNull TownBlock townBlock, @NotNull TownyPermissionChange change) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean b) Sets the event to be cancelled or not.Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownBlockPermissionChangeEvent
public TownBlockPermissionChangeEvent(@NotNull @NotNull TownBlock townBlock, @NotNull @NotNull TownyPermissionChange change)
-
-
Method Details
-
getTownBlock
-
getChange
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
isCancelled
in classCancellableTownyEvent
- Returns:
- true if this event is cancelled.
-
setCancelled
public void setCancelled(boolean b) Description copied from class:CancellableTownyEvent
Sets the event to be cancelled or not.- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
setCancelled
in classCancellableTownyEvent
- Parameters:
b
- true will cancel the event.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-