local chatcommand_cmd = "announcement_help" local chatcommand_definition = { params = "", description = "Lists the command help for the announcements." .. "\nExample: /announcement_help", privs = {[yl_announcements.settings.user_privs] = true}, func = function(name, param) local success, message = yl_announcements.chatcommand_announcement_help( name, param) if success then minetest.log("action", "[yl_announcements] player " .. name .. " displays help for announcements: " .. param) return true, message else minetest.log("warning", "[yl_announcements] player " .. name .. " displays help for announcements: " .. param .. " unsuccessfully, message: " .. message) return false, message end end } minetest.register_chatcommand(chatcommand_cmd, chatcommand_definition) yl_announcements.register_help(chatcommand_cmd, chatcommand_definition)