local commands = { "/cc" } local args = { type="group", args = { test = { desc = "test", func = "Test", type = "execute", name = "Test", }, }, } CC_Core = AceLibrary("AceAddon-2.0"):new("AceEvent-2.0", "AceHook-2.0", "AceDebug-2.0", "AceConsole-2.0","AceModuleCore-2.0") function CC_Core:OnInitialize() self.super.OnInitialize(self) self:RegisterChatCommand(commands, args) self:SetDebugging(true) for name,module in self:IterateModules() do self:Debug(name.." - "..module); if module.consoleOptions then self.cmdtable.args["plugin"].args[module.consoleCmd or name] = cons or module.consoleOptions end end end function CC_Core:Test() self:Debug("CC_Core:Test has been called") end function CC_Core:OnEnable() end function CC_Core:OnDisable() end