Package net.tnemc.plugincore.core.module
Interface Module
public interface Module
Module represents an add-on module for TNE.
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backup
(StorageManager manager) Called when thestorage manager
runs its backup method.void
disable
(PluginCore core) Called when thePluginCore.onDisable()
method is called.void
enable
(PluginCore core) Called after thePluginCore.enable()
method is called.void
enableMenu
(net.tnemc.menu.core.MenuHandler menuHandler) Called when themenu handler
is enabled.void
enableSave
(StorageManager manager) Called when thestorage manager
is enabled, and a connection is established.void
initConfigurations
(File directory) Called when the configurations are initialized and loaded.List
<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /tne command set.default Map
<String, CallbackEntry> Called after theCallbackManager
is initialized.void
registerCommands
(revxrsal.commands.Lamp.Builder<? extends revxrsal.commands.command.CommandActor> handler) Called after the default TNE Commands are registered.Called after theCallbackManager
is initialized.List
<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /money command set.List
<revxrsal.commands.orphan.OrphanCommand> Used to register sub commands onto the exist /transaction command set.void
reset
(StorageManager manager) Called when thestorage manager
runs its reset method.
-
Method Details
-
enable
Called after thePluginCore.enable()
method is called. -
disable
Called when thePluginCore.onDisable()
method is called. -
initConfigurations
Called when the configurations are initialized and loaded.- Parameters:
directory
- The plugin's configuration directory.
-
backup
Called when thestorage manager
runs its backup method.- Parameters:
manager
- Thestorage manager
instance.
-
reset
Called when thestorage manager
runs its reset method.- Parameters:
manager
- Thestorage manager
instance.
-
enableSave
Called when thestorage manager
is enabled, and a connection is established.- Parameters:
manager
- Thestorage manager
instance.
-
registerCommands
void registerCommands(revxrsal.commands.Lamp.Builder<? extends revxrsal.commands.command.CommandActor> handler) Called after the default TNE Commands are registered.- Parameters:
handler
- TheLamp
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 theCallbackManager
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 theCallbackManager
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.
-