Class BotSettingsChangeEvent
java.lang.Object
org.bukkit.event.Event
com.monkey.ultimatebot.api.event.base.BotEvent
com.monkey.ultimatebot.api.event.state.BotSettingsChangeEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired before one runtime setting is changed. Cancelling prevents the update.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBotSettingsChangeEvent(long sequence, BotSnapshot snapshot, BotEventSource source, BotSettingKey setting, @Nullable Object oldValue, @Nullable Object newValue) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerListorg.bukkit.event.HandlerList@Nullable Object@Nullable ObjectbooleanvoidsetCancelled(boolean cancelled) voidsetNewValue(@Nullable Object newValue) Methods inherited from class com.monkey.ultimatebot.api.event.base.BotEvent
getBotSnapshot, getBotUUID, getEventId, getOccurredAt, getOwnerUUID, getSequence, getSourceMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
BotSettingsChangeEvent
public BotSettingsChangeEvent(long sequence, BotSnapshot snapshot, BotEventSource source, BotSettingKey setting, @Nullable Object oldValue, @Nullable Object newValue)
-
-
Method Details
-
getSetting
-
getOldValue
-
getNewValue
-
setNewValue
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-