#Nametag not shown through blocks error

1 messages · Page 1 of 1 (latest)

wet pawn
#

show skript

#

we cant help without

white acorn
#
  name tag visibility: true  # Enable nametag hiding feature

on load:
  if name tag visibility is true:
    loop all players:
      set {_hiddenPlayers::%uuid of loop-player%} to {}

on join:
  if name tag visibility is true:
    loop all players:
      hide loop-player's nametag from all players
      make loop-player's nametag visible to {_hiddenPlayers::%uuid of loop-player%}

on quit:
  if name tag visibility is true:
    remove player from {_hiddenPlayers::%uuid of player%}

on every tick:
  if name tag visibility is true:
    loop all players:
      if player is not loop-player and player can see loop-player:
        if {_hiddenPlayers::%uuid of loop-player%} contains player:
          make loop-player's nametag visible to player
          remove player from {_hiddenPlayers::%uuid of loop-player%}
      else:
        if {_hiddenPlayers::%uuid of loop-player%} does not contain player:
          hide loop-player's nametag from player
          add player to {_hiddenPlayers::%uuid of loop-player%}
wary parcel
#

You need to put it in {}…