Class CorporationSettingChangeEvent
java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
us.teaminceptus.novaconomy.api.events.corporation.CorporationSettingChangeEvent
Called when a Corporation's Setting chanes
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Field Summary
Fields inherited from class us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
corporation -
Constructor Summary
ConstructorsConstructorDescriptionCorporationSettingChangeEvent(@NotNull Corporation c, @Nullable Object oldValue, @Nullable Object newValue, Settings.Corporation<?> setting) Creates a new CorporationSettingChangeEvent. -
Method Summary
Modifier and TypeMethodDescriptionFetches the new value of the Setting.Fetches the old value of the Setting.Fetches the Setting that was changed.Methods inherited from class us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
getCorporation, getHandlerList, getHandlersMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
CorporationSettingChangeEvent
public CorporationSettingChangeEvent(@NotNull @NotNull Corporation c, @Nullable @Nullable Object oldValue, @Nullable @Nullable Object newValue, @NotNull Settings.Corporation<?> setting) Creates a new CorporationSettingChangeEvent.- Parameters:
c- Corporation involvedoldValue- Old value of SettingnewValue- New value of Settingsetting- Setting that was changed
-
-
Method Details
-
getOldValue
Fetches the old value of the Setting.- Returns:
- Old Value of Setting
-
getNewValue
Fetches the new value of the Setting.- Returns:
- New Value of Setting
-
getSetting
Fetches the Setting that was changed.- Returns:
- Setting that Changed
-