Creating commands

Now lets make a simple command that shows us the version of the plugin

return {
	["version"] = function()
		
	end,
}

A package is able to have more than one command.

Now lets make it show our version:

return {
	["version"] = function(args, cmdInterface, cmd)
		cmdInterface:newMsg("The version is: " .. cmd.Version)
	end,
}

Now we have simple command that shows us the version!

Last updated