Class ConfigChangeEvent

java.lang.Object
org.bukkit.event.Event
net.fateuhc.plugin.api.events.ConfigChangeEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ConfigChangeEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

    • ConfigChangeEvent

      public ConfigChangeEvent()
  • Method Details

    • setCancelled

      public void setCancelled(boolean b)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getConfigName

      public String getConfigName()
      Get the name of the config file.
      Returns:
      String
    • getNewAmount

      public int getNewAmount()
      Get the new amount thats been set.
      Returns:
      Integer
    • getNewActive

      public boolean getNewActive()
      Get the new active status.
      Returns:
      Boolean
    • getConfigData

      public ConfigData getConfigData()
      Get the data for the config option thats been changed.
      Returns:
      ConfigData
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player who has changed the config option.
      Returns:
      Player
    • isCancelled

      public boolean isCancelled()
      Is the event cancelled?
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
      Returns:
      Boolean
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event