1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Need help with nameTag visibility

Discussion in 'Development' started by instantlyta, Jan 22, 2018.

  1. instantlyta

    instantlyta Slime

    Messages:
    96
    GitHub:
    intagaming
    It doesn't work. I don't know what to say to describe the problem, except for images.
    The command was run on the Lush account.

    Code:
    // onCommand
    $sender->setNameTagVisible(false);
    $sender->setNameTagAlwaysVisible(false);
    $sender->respawnToAll(); // Wasn't necessary
    var_dump($sender->isNameTagVisible(), $sender->isNameTagAlwaysVisible());
    upload_2018-1-22_19-25-34.png

    [​IMG]
     
  2. Kabluinc

    Kabluinc Baby Zombie

    Messages:
    129
    name tag visibility doesnt work for me anymore since 1.2
     
  3. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    blame mojang, they broke the flags in 1.2. Best you can do is hack around it by setting nametag to an empty string.
     
    instantlyta, Miste and Muqsit like this.
  4. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    This can be a headache... since then you can't restore players name without storing it at first
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.