-
Notifications
You must be signed in to change notification settings - Fork 15
Managers
SenkJu edited this page Oct 30, 2018
·
8 revisions
// Gets a module from the ModuleManager (Returns module)
var killAuraModule = moduleManager.getModule("KillAura");
var name = killAuraModule.getName(); // Returns the name of the module (String)
var description = killAuraModule.getDescription(); // Returns the description of the module (String)
var category = killAuraModule.getCategory(); // Returns the category of the module (String)
var state = killAuraModule.getState(); // Returns whether a module is toggled (Boolean)
var keyBind = killAuraModule.getBind(); // Returns the code of the key the module is bound to (Integer)
killAuraModule.setState(true); // Enables the module
killAuraModule.setState(false); // Disables the module
killAuraModule.setBind(-1); // Sets the bind of a module to a key code (Takes Integer)
killAuraModule.unregister(); // Unregisters the module from the ModuleManager
killAuraModule.register(); // Registers the module to the ModuleManager
commandManager.executeCommand(command, arguments);
commandManager.executeCommand(command);
// Example
commandManager.executeCommand(".help");