Class CorporationSettingChangeEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.corporation.CorporationEvent
us.teaminceptus.novaconomy.api.events.corporation.CorporationSettingChangeEvent

public class CorporationSettingChangeEvent extends CorporationEvent
Called when a Corporation's Setting chanes
  • 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 involved
      oldValue - Old value of Setting
      newValue - New value of Setting
      setting - Setting that was changed
  • Method Details

    • getOldValue

      public Object getOldValue()
      Fetches the old value of the Setting.
      Returns:
      Old Value of Setting
    • getNewValue

      public Object getNewValue()
      Fetches the new value of the Setting.
      Returns:
      New Value of Setting
    • getSetting

      public Settings.Corporation<?> getSetting()
      Fetches the Setting that was changed.
      Returns:
      Setting that Changed