Skip to content

Commit

Permalink
also remove rank from nametag (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
SwissalpS committed Dec 11, 2021
1 parent 0847ce5 commit ad7f6de
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ local remove_hud = function(player)
end

hud[playername] = nil

if not xp_redo.disable_nametag then
local is_admin = minetest.check_player_privs(playername, {privs=true})
local is_hidden = minetest.check_player_privs(playername, {hide_nametag=true})

if is_hidden or is_admin then return end

player:set_nametag_attributes({ text = playername })
end
end


Expand Down

0 comments on commit ad7f6de

Please sign in to comment.