Class Plugin

java.lang.Object
me.neurodock.plugin.Plugin

public abstract class Plugin extends Object
Entry point for the plugin, this is required for the plugin to work, and you MUST annotate it with PluginEntryPoint
  • Constructor Details

  • Method Details

    • onInit

      public void onInit()
      This will be called once every plugin has been loaded
    • onDisable

      public void onDisable()
      This will be called if the core gets a "fetal" exception or fails to fetch certain info
    • onEnable

      public void onEnable()
      This will be called after all plugins have been initialised; here it is safe to perform potential stuff where you load data from optional dependencies, or similar things
    • getTools

      public Tool[] getTools()
      The "main" method of a plugin, it will be the one returning a list of all tools you define.
      Returns:
      An array of all Tools you provide in this plugin, see Tool for definitions or MAL API tool for ideas or examples
    • getMetadata

      @NotNull public abstract @NotNull PluginMetadata getMetadata()
      This represents your plugin's Metadata
      Returns:
      A PluginMetadata object representing the metadata for your plugin