Show: both long and short cmds in help
This commit is contained in:
parent
d267e7ad97
commit
7db1b30542
@ -186,6 +186,7 @@ factions.register_command("flag", {
|
||||
end
|
||||
})
|
||||
factions.register_command({"description", "desc"}, {
|
||||
name = "desc,description",
|
||||
format = {"string"},
|
||||
faction_permissions = {"description"},
|
||||
description = "Set your faction's description",
|
||||
@ -273,6 +274,7 @@ factions.register_command("ranks", {
|
||||
end
|
||||
})
|
||||
factions.register_command({"privileges", "privs"}, {
|
||||
name = "privs,privileges",
|
||||
description = "List available rank privileges",
|
||||
description_arg = ":",
|
||||
global_privileges = def_global_privileges,
|
||||
@ -287,6 +289,7 @@ factions.register_command({"privileges", "privs"}, {
|
||||
end
|
||||
})
|
||||
factions.register_command({"message_of_the_day", "motd"}, {
|
||||
name = "motd,message_of_the_day",
|
||||
format = {"string"},
|
||||
faction_permissions = {"motd"},
|
||||
description = "Sets the message that shows up every time a faction member logs in.",
|
||||
|
@ -258,9 +258,9 @@ function factions.create_help_text()
|
||||
if k:sub(1, 1) == j then
|
||||
if not v.dont_show_in_help then
|
||||
if not table_Contains(v.global_privileges, "faction_admin") then
|
||||
premade_help = premade_help .. "\t/f " .. k .. v.description_arg .. " " .. v.description .. "\n"
|
||||
premade_help = premade_help .. "\t/f " .. v.name .. v.description_arg .. " " .. v.description .. "\n"
|
||||
end
|
||||
premade_help_admin = premade_help_admin .. "\t/f " .. k .. v.description_arg .. " " .. v.description .. "\n"
|
||||
premade_help_admin = premade_help_admin .. "\t/f " .. v.name .. v.description_arg .. " " .. v.description .. "\n"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user