Interface IPlugin

All Known Implementing Classes:
UltiToolsPlugin

public interface IPlugin
Plugin interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    UltiTools will call this method when instantiating the main body of the plugin, similar to JavaPlugin.onEnable()
    void
    UltiTools will call this method when reloading this plugin module, similar to JavaPlugin.onDisable() and JavaPlugin.onEnable().
    void
    UltiTools will call this method when unregistering this plugin module, similar to JavaPlugin.onDisable()
  • Method Details

    • registerSelf

      boolean registerSelf() throws IOException
      UltiTools will call this method when instantiating the main body of the plugin, similar to JavaPlugin.onEnable()
      Returns:
      Whether the registration is successful
      Throws:
      IOException - IOException
    • unregisterSelf

      void unregisterSelf()
      UltiTools will call this method when unregistering this plugin module, similar to JavaPlugin.onDisable()
    • reloadSelf

      void reloadSelf()
      UltiTools will call this method when reloading this plugin module, similar to JavaPlugin.onDisable() and JavaPlugin.onEnable(). This reload is not a module restart: it does not call registerSelf() or unregisterSelf().