Status retrieves custom nametag if available when hidden
parent
0b8a1961ae
commit
4916979f96
1
TODO.txt
1
TODO.txt
|
@ -1,5 +1,4 @@
|
|||
|
||||
TODO:
|
||||
- retrieve custom nametag text if set when checking status
|
||||
- make compatible with "invisible" mod /vanish command & "invisibility" mod
|
||||
- add chat command help details
|
||||
|
|
7
api.lua
7
api.lua
|
@ -45,9 +45,12 @@ function hidename.tellStatus(name)
|
|||
status = S(status, S("visible"))
|
||||
end
|
||||
|
||||
-- Use name parameter value if nametag.text is empty
|
||||
-- Use stored text or name parameter value if nametag.text is empty
|
||||
if not nametag.text or nametag.text:trim() == "" then
|
||||
nametag.text = name
|
||||
nametag.text = player:get_meta():get_string("nametag_stored_text")
|
||||
if nametag.text:trim() == "" then
|
||||
nametag.text = name
|
||||
end
|
||||
end
|
||||
|
||||
core.chat_send_player(name, S("Nametag: @1", nametag.text))
|
||||
|
|
|
@ -3,6 +3,7 @@ next
|
|||
----
|
||||
- added missing "textdomain" line to localization template
|
||||
- added Spanish translation
|
||||
- fixed status not retrieving custom nametag text when hidden
|
||||
|
||||
|
||||
v1.1
|
||||
|
|
Loading…
Reference in New Issue