diff --git a/chatcommand_add.lua b/chatcommand_add.lua index 9b0433f..a6d34ce 100644 --- a/chatcommand_add.lua +++ b/chatcommand_add.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_add" local chatcommand_definition = { params = "$$", - description = "Sends the message each frequency seconds for a maximum number of runtime seconds.", + description = "Sends the message each frequency seconds for a maximum number of runtime seconds." .. + "\nExample: /announcement_add Runs every 50 seconds for one hour (= 3600 seconds)$50$3600", privs = {[yl_announcements.settings.admin_privs] = true}, func = function(name, param) local success, message = yl_announcements.chatcommand_announcement_add( diff --git a/chatcommand_copy.lua b/chatcommand_copy.lua index 7540a40..de93b4e 100644 --- a/chatcommand_copy.lua +++ b/chatcommand_copy.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_copy" local chatcommand_definition = { - params = "", -- Short parameter description - description = "Open the announcement with ID in a formspec, so it can be copied.", -- Full description + params = "", + description = "Open the announcement with ID in a formspec, so it can be copied." .. + "\nExample: /announcement_copy 5", privs = {[yl_announcements.settings.user_privs] = true}, func = function(name, param) local success, message = yl_announcements.chatcommand_announcement_copy( diff --git a/chatcommand_delete.lua b/chatcommand_delete.lua index 38ed2c2..677a242 100644 --- a/chatcommand_delete.lua +++ b/chatcommand_delete.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_delete" local chatcommand_definition = { - params = "", -- Short parameter description - description = "Delete the announcement ID.", -- Full description + params = "", + description = "Delete the announcement ID." .. + "\nExample: /announcement_delete 5", privs = {[yl_announcements.settings.admin_privs] = true}, func = function(name, param) local success, message = diff --git a/chatcommand_list.lua b/chatcommand_list.lua index 677a679..c645770 100644 --- a/chatcommand_list.lua +++ b/chatcommand_list.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_list" local chatcommand_definition = { - params = "", -- Short parameter description - description = "List announcement with ID to you.", -- Full description + params = "", + description = "List announcement with ID to you." .. + "\nExample: /announcement_list 5", privs = {[yl_announcements.settings.user_privs] = true}, func = function(name, param) local success, message = yl_announcements.chatcommand_announcement_list( diff --git a/chatcommand_list_all.lua b/chatcommand_list_all.lua index 754024e..72a6fbb 100644 --- a/chatcommand_list_all.lua +++ b/chatcommand_list_all.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_list_all" local chatcommand_definition = { - params = "", -- Short parameter description - description = "Lists all announcements to you.", -- Full description + params = "", + description = "Lists all announcements to you." .. + "\nExample: /announcement_list_all", privs = {[yl_announcements.settings.user_privs] = true}, func = function(name, param) local success, message = diff --git a/chatcommand_say.lua b/chatcommand_say.lua index 37cec99..3d1c3ef 100644 --- a/chatcommand_say.lua +++ b/chatcommand_say.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_say" local chatcommand_definition = { - params = "", -- Short parameter description - description = "Say the announcement with ID in main chat.", -- Full description + params = "", + description = "Say the announcement with ID in main chat." .. + "\nExample: /announcement_say 5", privs = {[yl_announcements.settings.admin_privs] = true}, func = function(name, param) local success, message = yl_announcements.chatcommand_announcement_say( diff --git a/chatcommand_say_all.lua b/chatcommand_say_all.lua index a02106e..c2f22f2 100644 --- a/chatcommand_say_all.lua +++ b/chatcommand_say_all.lua @@ -1,7 +1,8 @@ local chatcommand_cmd = "announcement_say_all" local chatcommand_definition = { - params = "", -- Short parameter description - description = "Say all announcements in main chat.", -- Full description + params = "", + description = "Say all announcements in main chat." .. + "\nExample: /announcement_say_all", privs = {[yl_announcements.settings.admin_privs] = true}, func = function(name, param) local success, message =