I'm creating a simple addon that shows information like XP to level up on the chat. It's called by typing /minXP. I have the following code (using an .xml to be able to use OnLoad), but the game keeps throwing an unknown command error each time I call it.
Code:
local function cmdHandler(msg, editbox)
showXP();
end
function MinimalXP_OnLoad()
SLASH_MINXP1= "/minXP";
SlashCmdList["minimalXP"] = cmdHandler;
end