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

How to change the top of head of a player

Discussion in 'Development' started by Palente, Feb 20, 2017.

  1. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    Hey, my question is so difficult and easy (difficult to explain and so easy when you understand what i say)
    I think all have the reply.
    How to change the top of head of player.
    I mean where there are write the name of the player and his life
    Do you understand what i mean

    Sorry for my bad englisgh
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Do you mean the nametag of players?
     
  3. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    i want to change that
    [​IMG]
    where there are writted the name of player i don't know the name of that xD
     
  4. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    You can use this to get the current nametag of a player:
    PHP:
     //Assuming $player is an instance of Player:
      
    $player->getNameTag(); 
    You can set the nametag of a Player(or most Entities) with this:
    PHP:
     $player->setNameTag("Blah Blah"); 
    If you want to make a player's nametag blue, you could do this:
    PHP:
     $name $player->getNameTag();
      
    $player->setNameTag(TextFormat::AQUA $name); 
    PureChat allows you to set nametags and chat formats for players, so you may want to check it out.
     
  5. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    It's called "nametag"
     
    Palente and corytortoise like this.
  6. Palente

    Palente Slime

    Messages:
    75
    GitHub:
    palente
    okay thanks
    Okay thanks For me nametags is for XBOX live
     
  7. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Isn't that gametag?
     
  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.