Made Loader register the commands on load
This commit is contained in:
parent
1917a08d14
commit
4cd9f3e551
@ -49,7 +49,9 @@ public final class ModuleLoader implements CoreModule
|
||||
Debugger.notifyMethod(clazz);
|
||||
try
|
||||
{
|
||||
modules.add(clazz.newInstance());
|
||||
Module module = clazz.newInstance();
|
||||
modules.add(module);
|
||||
CommandManager.registerCommand(module.getCommandString(), module, Main.plugin);
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user