Solved What is the difference between these functions?

Discussion in 'Help' started by DeviceBlack, Oct 25, 2021.

  1. DeviceBlack

    DeviceBlack Creeper

    Messages:
    4
    GitHub:
    ColdRevenger
    1°: $player->setDisplayName(...);
    2°: $player>setNameTag(...);
    //-----
    It may sound silly, but in my view (or reading ) there is no difference
     
  2. Tobias14

    Tobias14 Spider

    Messages:
    6
    GitHub:
    tobias-2006
    The NameTag is just the Tag above your head.
    The DisplayName is like a NickName, it's shown in the PlayerList and the escape screen.
     
    DeviceBlack likes this.
  3. Primus

    Primus Zombie Pigman

    Messages:
    707
    Display name and username are separate properties because the username can be used for identification and therefore its mutability is not desirable.
     
    DeviceBlack likes this.
  4. DeviceBlack

    DeviceBlack Creeper

    Messages:
    4
    GitHub:
    ColdRevenger
    Thanks for the help!
     

Share This Page

  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.