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