generated from your-land/yl_template
your-land/yl_announcements#2 Changes wrong minutes to seconds in help and documentation
This commit is contained in:
parent
e095061598
commit
b77b2b0849
@ -88,10 +88,10 @@ Those announcements sit in a table with `announcement_id` as index:
|
||||
### Chatcommands
|
||||
|
||||
```
|
||||
/announcement_add message$frequency in minutes$runtime in minutes
|
||||
/announcement_add message$frequency in seconds$runtime in seconds
|
||||
```
|
||||
|
||||
Sends the message each frequency minutes for a maximum number of runtime minutes.
|
||||
Sends the message each frequency seconds for a maximum number of runtime seconds.
|
||||
|
||||
```
|
||||
/announcement_copy announcement_id
|
||||
|
2
api.lua
2
api.lua
@ -64,7 +64,7 @@ function yl_announcements.set(message, frequency, runtime, owner)
|
||||
return false, "Could not store announcement"
|
||||
end
|
||||
|
||||
-- /announcement_add message$frequency in minutes$runtime in minutes
|
||||
-- /announcement_add message$frequency in seconds$runtime in seconds
|
||||
function yl_announcements.formspec(announcement_id)
|
||||
|
||||
-- Check announcement_id
|
||||
|
@ -1,7 +1,7 @@
|
||||
local chatcommand_cmd = "announcement_add"
|
||||
local chatcommand_definition = {
|
||||
params = "<message>$<frequency in minutes>$<runtime in minutes>",
|
||||
description = "Sends the message each frequency minutes for a maximum number of runtime minutes.",
|
||||
params = "<message>$<frequency in seconds>$<runtime in seconds>",
|
||||
description = "Sends the message each frequency seconds for a maximum number of runtime seconds.",
|
||||
privs = {[yl_announcements.settings.admin_privs] = true},
|
||||
func = function(name, param)
|
||||
local success, message = yl_announcements.chatcommand_announcement_add(
|
||||
|
Loading…
Reference in New Issue
Block a user