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

public final class BotSettingsChangeEvent extends BotEvent implements org.bukkit.event.Cancellable
Fired before one runtime setting is changed. Cancelling prevents the update.
  • Constructor Details

  • Method Details

    • getSetting

      public BotSettingKey getSetting()
    • getOldValue

      public @Nullable Object getOldValue()
    • getNewValue

      public @Nullable Object getNewValue()
    • setNewValue

      public void setNewValue(@Nullable Object newValue)
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

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

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