Package org.reprogle.honeypot.utils
Class HoneypotConfigManager
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.reprogle.honeypot.utils.HoneypotConfigManager
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public class HoneypotConfigManager
extends org.bukkit.plugin.java.JavaPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic dev.dejvokep.boostedyaml.YamlDocumentReturns the plugin GUI config objectstatic dev.dejvokep.boostedyaml.YamlDocumentReturns the plugin Honeypots config objectstatic dev.dejvokep.boostedyaml.YamlDocumentstatic dev.dejvokep.boostedyaml.YamlDocumentReturns the plugin config objectstatic voidsetupConfig(org.bukkit.plugin.Plugin plugin) Sets up the plugin config and saves it to private variables for use later.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onDisable, onEnable, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
HoneypotConfigManager
public HoneypotConfigManager()
-
-
Method Details
-
setupConfig
public static void setupConfig(org.bukkit.plugin.Plugin plugin) Sets up the plugin config and saves it to private variables for use later. Will shut down the plugin if there are any IOExceptions as these config files are non-negotiable in the function of this plugin.- Parameters:
plugin- The Honeypot Plugin object
-
getPluginConfig
public static dev.dejvokep.boostedyaml.YamlDocument getPluginConfig()Returns the plugin config object- Returns:
- The YamlDocument object
-
getGuiConfig
public static dev.dejvokep.boostedyaml.YamlDocument getGuiConfig()Returns the plugin GUI config object- Returns:
- The YamlDocument object
-
getHoneypotsConfig
public static dev.dejvokep.boostedyaml.YamlDocument getHoneypotsConfig()Returns the plugin Honeypots config object- Returns:
- The YamlDocument object
-
getLanguageFile
public static dev.dejvokep.boostedyaml.YamlDocument getLanguageFile()
-