Interface Addon

All Superinterfaces:
org.bukkit.command.CommandExecutor, org.bukkit.plugin.Plugin, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor

public interface Addon extends org.bukkit.plugin.Plugin
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
     
     
    default boolean
     
    default boolean
     
    default void
     
    void
     
    default void
    Signals the plugin that one of the addons are going to be disabled.
    default void
     

    Methods inherited from interface org.bukkit.command.CommandExecutor

    onCommand

    Methods inherited from interface org.bukkit.plugin.Plugin

    getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getLogger, getName, getPluginLoader, getResource, getServer, isEnabled, isNaggable, onDisable, onEnable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable

    Methods inherited from interface org.bukkit.command.TabCompleter

    onTabComplete
  • Method Details

    • reloadAddon

      void reloadAddon()
    • uninstall

      default void uninstall()
    • getAddonName

      String getAddonName()
    • getFile

      File getFile()
    • signalDisable

      default void signalDisable()
      Signals the plugin that one of the addons are going to be disabled. Currently, this only makes the plugin to save all data.

      This is needed if you're using a custom metadata handler (i.e. not a StandardKingdomMetadataHandler) because the metadata handler class is loaded by the other plugins, and if they get disabled before kingdoms, the classes are unloaded to and when kingdoms is about to save the data it can't find those classes and that will cause errors.

    • disableAddon

      default void disableAddon()
    • isKingdomsLoaded

      default boolean isKingdomsLoaded()
    • isKingdomsEnabled

      default boolean isKingdomsEnabled()
    • registerAddon

      default void registerAddon()