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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static dev.dejvokep.boostedyaml.YamlDocument
    Returns the plugin GUI config object
    static dev.dejvokep.boostedyaml.YamlDocument
    Returns the plugin Honeypots config object
    static dev.dejvokep.boostedyaml.YamlDocument
     
    static dev.dejvokep.boostedyaml.YamlDocument
    Returns the plugin config object
    static void
    setupConfig(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, toString

    Methods inherited from class org.bukkit.plugin.PluginBase

    equals, getName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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()