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

setDisplayName, does it still work?

Discussion in 'Plugin Help' started by bunny-senpai, Jul 1, 2022.

  1. bunny-senpai

    bunny-senpai Creeper

    Messages:
    1
    Hello,

    why does setDisplayName() not work anymore or how does setDisplayName work at all? I mean you can't do much wrong but somehow it doesn't work.

    //work
    $player->setNameTag("§9{$player->getName()}");
    //does not work for the menu???? trigger
    $player->setDisplayName("§9{$player->getName()}");
     

    Attached Files:

    Last edited: Jul 1, 2022
  2. SVega

    SVega Spider

    Messages:
    13
    GitHub:
    svega9848
    No, it does not work anymore like that. It just works for things like leaving the server etc..
     
  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.