Additional details for chat command help

master
Jordan Irwin 2021-08-04 14:26:31 -07:00
parent 4916979f96
commit 80195385a3
4 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,3 @@
TODO:
- make compatible with "invisible" mod /vanish command & "invisibility" mod
- add chat command help details

View File

@ -36,7 +36,11 @@ local params_string = "[" .. table.concat(params, "|") .. "]"
-- /nametag hide
core.register_chatcommand("nametag", {
params = params_string,
description = S("Get nametag info or set visibility"),
description = S("Get nametag info or set visibility") .. "\n\n"
.. S("Parameter options:")
.. "\n hide: " .. S("Make nametag hidden")
.. "\n show: " .. S("Make nametag visible")
.. "\n status: " .. S("Display nametag text & visible state (default)"),
func = function(name, param)
-- Split parameters into case-insensitive list
param = string.split(string.lower(param), " ")

View File

@ -13,6 +13,8 @@ Nametag is now visible=Ahora està visible nombre
Make nametag hidden=Esconder nombre
Make nametag visible=Hacer visible nombre
Get nametag info or set visibility=Obtener el estado de placa de nombre o establecer visibilidad
Parameter options:=Opciones de parámetro:
Display nametag text & visible state (default)=Mostrar texto del nombre y estado de visibilidad (defecto)
ERROR: Unknown parameter: @1=ERROR: Parámetro desconocido: @1
ERROR: Could not hide nametag=ERROR: No se pudo esconder nombre

View File

@ -14,6 +14,8 @@ Nametag is now visible=
Make nametag hidden=
Make nametag visible=
Get nametag info or set visibility=
Parameter options:=
Display nametag text & visible state (default)=
ERROR: Unknown parameter: @1=
ERROR: Could not hide nametag=