Class PlayerSettingChangeEvent

java.lang.Object
org.bukkit.event.Event
us.teaminceptus.novaconomy.api.events.settings.SettingEvent
us.teaminceptus.novaconomy.api.events.player.PlayerSettingChangeEvent

public class PlayerSettingChangeEvent extends SettingEvent
Called when a Player changes their personal settings
  • Constructor Details

    • PlayerSettingChangeEvent

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

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Fetches the player involved in this event.
      Returns:
      Player 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.Personal getSetting()
      Description copied from class: SettingEvent
      Fetches the setting involved in this event.
      Overrides:
      getSetting in class SettingEvent
      Returns:
      Settings.NovaSetting involved