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

Line to Nametag

Discussion in 'Help' started by Ayzrix, Apr 9, 2019.

  1. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
    Someone can explain to me how to go on line in the Nametag of a group ? I use PurePerms and PureChat
     
    Last edited: Apr 9, 2019
  2. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Can you explain what you mean by "go online"?
     
  3. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
    Sorry for the fault . That's "on line"
     
  4. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    like \n?
     
  5. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
    Not work for the nametag :/
     
  6. Levi

    Levi Skeleton

    Messages:
    955
    GitHub:
    captainleviftw
    Can you show your config or code
     
    jasonwynn10 likes this.
  7. Apexia

    Apexia Spider

    Messages:
    7
    Hes meaning go to a different line, like newline
     
  8. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
    That's my configuration
     

    Attached Files:

  9. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
    I have to use PHP_EOL but I do not understand how to use it
     
  10. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    PHP_EOL is more of a pseudo constant. It's value may not be "\n" based on your OS. Use TextFormat::EOL instead. See: https://github.com/pmmp/PocketMine-MP/commit/4c46087ffccc7f26835a1fc5bbf2ac60397884f9

    When in a config, you can't access constants from code directly. Use "\n" as a linebreak like @Levi said. You may want to read this thread btw: https://forums.pmmp.io/threads/adding-multiple-lines-to-floating-text.7251/#post-60367
     
    Ayzrix and jasonwynn10 like this.
  11. Ayzrix

    Ayzrix Witch

    Messages:
    66
    GitHub:
    Ayzrix
  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.