Package net.fateuhc.plugin.api.events
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the data for the config option thats been changed.Get the name of the config file.@NotNull org.bukkit.event.HandlerListbooleanGet the new active status.intGet the new amount thats been set.org.bukkit.entity.PlayerGet the player who has changed the config option.booleanIs the event cancelled?voidsetCancelled(boolean b) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ConfigChangeEvent
public ConfigChangeEvent()
-
-
Method Details
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
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
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:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
Boolean
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-