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

public abstract class GenesisAddonConfigurable extends GenesisAddon
  • Constructor Details

    • GenesisAddonConfigurable

      public GenesisAddonConfigurable()
  • Method Details

    • enable

      protected void enable()
      Enables the config for the addon
      Overrides:
      enable in class GenesisAddon
    • disable

      protected void disable()
      Disables the addon for the config
      Overrides:
      disable in class GenesisAddon
    • reload

      public void reload(org.bukkit.command.CommandSender sender)
      Reloads thje config for an addon
      Overrides:
      reload in class GenesisAddon
      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:
      getConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      getConfig in class org.bukkit.plugin.java.JavaPlugin
      Returns:
      config for addon
    • getAddonConfig

      public GenesisAddonConfig getAddonConfig()
      Gets the config for the addon
      Returns:
      config for addon
    • reloadConfig

      public void reloadConfig()
      Reloads the config
      Specified by:
      reloadConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      reloadConfig in class org.bukkit.plugin.java.JavaPlugin
    • saveConfig

      public void saveConfig()
      Saves the config
      Specified by:
      saveConfig in interface org.bukkit.plugin.Plugin
      Overrides:
      saveConfig in class org.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