Interface Module


public interface Module
Module represents an add-on module for TNE.
Since:
0.1.2.0
Author:
creatorfromhell
  • Method Details

    • enable

      void enable(PluginCore core)
      Called after the PluginCore.enable() method is called.
    • disable

      void disable(PluginCore core)
      Called when the PluginCore.onDisable() method is called.
    • initConfigurations

      void initConfigurations(File directory)
      Called when the configurations are initialized and loaded.
      Parameters:
      directory - The plugin's configuration directory.
    • backup

      void backup(StorageManager manager)
      Called when the storage manager runs its backup method.
      Parameters:
      manager - The storage manager instance.
    • reset

      void reset(StorageManager manager)
      Called when the storage manager runs its reset method.
      Parameters:
      manager - The storage manager instance.
    • enableSave

      void enableSave(StorageManager manager)
      Called when the storage manager is enabled, and a connection is established.
      Parameters:
      manager - The storage manager instance.
    • enableMenu

      void enableMenu(net.tnemc.menu.core.MenuHandler menuHandler)
      Called when the menu handler is enabled.
      Parameters:
      menuHandler - The menu handler.
    • registerCommands

      void registerCommands(revxrsal.commands.Lamp.Builder<? extends revxrsal.commands.command.CommandActor> handler)
      Called after the default TNE Commands are registered.
      Parameters:
      handler - The Lamp that the commands are registered to.
    • registerMoneySub

      List<revxrsal.commands.orphan.OrphanCommand> registerMoneySub()
      Used to register sub commands onto the exist /money command set.
    • registerTransactionSub

      List<revxrsal.commands.orphan.OrphanCommand> registerTransactionSub()
      Used to register sub commands onto the exist /transaction command set.
    • registerAdminSub

      List<revxrsal.commands.orphan.OrphanCommand> registerAdminSub()
      Used to register sub commands onto the exist /tne command set.
    • registerCallbacks

      Called after the CallbackManager is initialized. This method will register new callbacks with the manager automatically.
      Returns:
      A map containing the callbacks to register where the key is the callback name and the value is the CallbackEntry function.
    • registerListeners

      Called after the CallbackManager is initialized. This method will register the callback listeners with the manager automatically.
      Returns:
      A map containing the listeners to register where the key is the callback name and the value is the listener function.