Class BusinessSettingChangeEvent
java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.settings.SettingEvent
us.teaminceptus.novaconomy.api.events.business.BusinessSettingChangeEvent
Called after a setting for a business is changed
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionBusinessSettingChangeEvent(@NotNull Business business, boolean oldValue, boolean newValue, Settings.Business<?> setting) Constructs a BusinessSettingChangeEvent. -
Method Summary
Modifier and TypeMethodDescription@NotNull BusinessFetches the Business involved in this event.booleanFetches the new value of the setting.booleanFetches the old value of the setting.Fetches the setting involved in this event.Methods inherited from class us.teaminceptus.novaconomy.api.events.settings.SettingEvent
getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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 involvedbusiness- Business involvedoldValue- Old value of the settingnewValue- New value of the setting- Throws:
IllegalArgumentException- if business or setting is null
-
-
Method Details
-
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
Description copied from class:SettingEventFetches the setting involved in this event.- Overrides:
getSettingin classSettingEvent- Returns:
Settings.NovaSettinginvolved
-