fix chatcommand help
This commit is contained in:
parent
212ba9fc85
commit
636d8a4220
@ -48,8 +48,10 @@ end
|
|||||||
core.register_chatcommand(
|
core.register_chatcommand(
|
||||||
"snowball",
|
"snowball",
|
||||||
{
|
{
|
||||||
params = "opt-out|opt-in|hud",
|
--params = "opt-out|opt-in|hud",
|
||||||
description = "Opt-out or opt-in from the snowball games. Hide/show game HUD",
|
--description = "Opt-out or opt-in from the snowball games. Hide/show game HUD",
|
||||||
|
params = "opt-out|opt-in",
|
||||||
|
description = "Opt-out or opt-in from the snowball games.",
|
||||||
privs = {},
|
privs = {},
|
||||||
func = function(player_name, param)
|
func = function(player_name, param)
|
||||||
if param == "opt-out" then
|
if param == "opt-out" then
|
||||||
@ -58,9 +60,10 @@ core.register_chatcommand(
|
|||||||
elseif param == "opt-in" then
|
elseif param == "opt-in" then
|
||||||
local res = set_player_participation(player_name, true)
|
local res = set_player_participation(player_name, true)
|
||||||
return true, "You opt-in into snowball games."
|
return true, "You opt-in into snowball games."
|
||||||
elseif param == "hud" then
|
-- elseif param == "hud" then
|
||||||
|
-- return false, "Not implemented yet, sorry."
|
||||||
end
|
end
|
||||||
|
return false, "Please specify 'opt-in' or 'opt-out' argument."
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user