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

addTitle not working?

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

  1. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    it doesn’t show title when i join
    PHP:
    public function onJoin(PlayerJoinEvent $event){
      
    $player $event->getPlayer();
      
    $player->addTitle("te""test");
    }
    I am using PMMP
     
  2. Thouv

    Thouv Slime

    Messages:
    84
    GitHub:
    adeynes
    Schedule a delayed task of about 20 ticks and then add the title
     
    jasonwynn10, gistrec and kazuya like this.
  3. gistrec

    gistrec Witch

    Messages:
    68
    GitHub:
    gistrec
    In 1.1 pmmp sendTitle have "Duration in ticks to stay on screen" ^-^
     
  4. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    Take a look at here
    Better to fill in all parameters
     
    Last edited: Jun 17, 2017
  5. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Do you see those default values? They're there so you don't have to fill those out. You really don't have to fill out all parameters, but it's a known client bug that titles don't show directly on join.
     
    jasonwynn10 and corytortoise like this.
  6. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    I didn't said you MUST fill in all the parameters
    What I said is "better" cus you can control the title duration
    Please read carefully and don't missunderstand my message :D
     
  7. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    But that's not a solution to the issue in this thread, which is what he was trying to say. It doesn't matter what the parameters are in this case, the title still won't show up.
     
  8. XdmingXD

    XdmingXD Baby Zombie

    Messages:
    158
    GitHub:
    xdmingxd
    haha I totally agree with you
    Maybe I am a little bit off topic to response these message
     
  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.