Class HoneypotConfigManager

java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
org.reprogle.honeypot.common.utils.HoneypotConfigManager
All Implemented Interfaces:
io.papermc.paper.plugin.lifecycle.event.LifecycleEventOwner, 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
    Returns the plugin Language file (All translations, essentially)
    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, getLifecycleManager, getLogger, getPlugin, getPluginLoader, getPluginMeta, getProvidingPlugin, getResource, getServer, getTextResource, init, init, 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

    Methods inherited from interface org.bukkit.plugin.Plugin

    getComponentLogger, getLog4JLogger, getSLF4JLogger
  • 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 for the main config
    • getGuiConfig

      public static dev.dejvokep.boostedyaml.YamlDocument getGuiConfig()
      Returns the plugin GUI config object
      Returns:
      The YamlDocument object for the GUI config
    • getHoneypotsConfig

      public static dev.dejvokep.boostedyaml.YamlDocument getHoneypotsConfig()
      Returns the plugin Honeypots config object
      Returns:
      The YamlDocument object for the custom Honeypots config
    • getLanguageFile

      public static dev.dejvokep.boostedyaml.YamlDocument getLanguageFile()
      Returns the plugin Language file (All translations, essentially)
      Returns:
      THe YamlDocument object for the currently loaded language