Class BusinessSettingChangeEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.settings.SettingEvent
us.teaminceptus.novaconomy.api.events.business.BusinessSettingChangeEvent

public class BusinessSettingChangeEvent extends SettingEvent
Called after a setting for a business is changed
  • Constructor Details

    • BusinessSettingChangeEvent

      public BusinessSettingChangeEvent(@NotNull @NotNull Business business, boolean oldValue, boolean newValue, @NotNull Settings.Business setting) throws IllegalArgumentException
      Constructs a BusinessSettingChangeEvent.
      Parameters:
      setting - Setting involved
      business - Business involved
      oldValue - Old value of the setting
      newValue - New value of the setting
      Throws:
      IllegalArgumentException - if business or setting is null
  • Method Details

    • getBusiness

      @NotNull public @NotNull Business getBusiness()
      Fetches the Business involved in this event.
      Returns:
      Business involved
    • getOldValue

      public boolean getOldValue()
      Fetches the old value of the setting.
      Returns:
      Old value of the setting
    • getNewValue

      public boolean getNewValue()
      Fetches the new value of the setting.
      Returns:
      New value of the setting
    • getSetting

      public Settings.Business getSetting()
      Description copied from class: SettingEvent
      Fetches the setting involved in this event.
      Overrides:
      getSetting in class SettingEvent
      Returns:
      Settings.NovaSetting involved