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

Solved setCustomName not working?

Discussion in 'Development' started by kazuya, Jun 11, 2017.

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    This used to work but not anymore
    PHP:
    $item1 Item::get(26701);
        
    $player->getInventory()->setItem(4$item1);
        
    $item1->setCustomName(TF::BOLD TF::GOLD "FFA" TF::RESET);
     
  2. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    fixed.. im dumb lol

    PHP:
    $item1 Item::get(26701);
        
    $item1->setCustomName(TF::BOLD TF::GOLD "FFA" TF::RESET);
        
    $player->getInventory()->setItem(4$item1);
     
  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.