generated from your-land/yl_template
20 lines
673 B
Lua
20 lines
673 B
Lua
local chatcommand_cmd = "scheduler_remove"
|
|
local chatcommand_params = "<UUID>"
|
|
local chatcommand_description = "Removes the given UUID from the task list. See /".. chatcommand_cmd .. " help"
|
|
|
|
local chatcommand_definition = {
|
|
params = chatcommand_params,
|
|
description = chatcommand_description,
|
|
privs = yl_scheduler.get_privs(chatcommand_cmd),
|
|
func = function(name, params)
|
|
local success, message = yl_scheduler["cmd_" .. chatcommand_cmd](name, params)
|
|
if success then
|
|
return true, message
|
|
else
|
|
return false, message
|
|
end
|
|
end
|
|
}
|
|
|
|
minetest.register_chatcommand(chatcommand_cmd, chatcommand_definition)
|