Package studio.magemonkey.genesis.api
Class GenesisAddonConfigurable
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
studio.magemonkey.genesis.api.GenesisAddon
studio.magemonkey.genesis.api.GenesisAddonConfigurable
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddisable()Disables the addon for the configprotected voidenable()Enables the config for the addonGets the config for the addonorg.bukkit.configuration.file.FileConfigurationGets the config for the addon as a FileConfigurationvoidreload(org.bukkit.command.CommandSender sender) Reloads thje config for an addonvoidReloads the configvoidSaves the configabstract booleanDetermines whether or not to save the config when the addon is disabledMethods inherited from class studio.magemonkey.genesis.api.GenesisAddon
createStorage, disableAddon, enableAddon, genesisFinishedLoading, genesisReloaded, getAddonName, getGenesis, getRequiredGenesisVersion, getWorth, onDisable, onEnable, printInfo, printSevere, printWarningMethods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
GenesisAddonConfigurable
public GenesisAddonConfigurable()
-
-
Method Details
-
enable
protected void enable()Enables the config for the addon- Overrides:
enablein classGenesisAddon
-
disable
protected void disable()Disables the addon for the config- Overrides:
disablein classGenesisAddon
-
reload
public void reload(org.bukkit.command.CommandSender sender) Reloads thje config for an addon- Overrides:
reloadin classGenesisAddon- Parameters:
sender- the execute of the command
-
getConfig
public org.bukkit.configuration.file.FileConfiguration getConfig()Gets the config for the addon as a FileConfiguration- Specified by:
getConfigin interfaceorg.bukkit.plugin.Plugin- Overrides:
getConfigin classorg.bukkit.plugin.java.JavaPlugin- Returns:
- config for addon
-
getAddonConfig
Gets the config for the addon- Returns:
- config for addon
-
reloadConfig
public void reloadConfig()Reloads the config- Specified by:
reloadConfigin interfaceorg.bukkit.plugin.Plugin- Overrides:
reloadConfigin classorg.bukkit.plugin.java.JavaPlugin
-
saveConfig
public void saveConfig()Saves the config- Specified by:
saveConfigin interfaceorg.bukkit.plugin.Plugin- Overrides:
saveConfigin classorg.bukkit.plugin.java.JavaPlugin
-
saveConfigOnDisable
public abstract boolean saveConfigOnDisable()Determines whether or not to save the config when the addon is disabled- Returns:
- save or not
-