Solved Max characters in Motd and chat-line

Discussion in 'Spigot Plugin Development' started by GCNT, May 3, 2018.

  1. Hey!

    What is the max character amount in one chat-line?
    And what's the max character amount in one motd-line?
     
  2. I think it's relative to the characters you used, mostly have different pixel lengths
     
  3. I know, but if you only use for example "-" what the max lenght than?
     
  4. Well then, I've tried ONLY '-'s in one line and it's 53 length before it spits up
    (In the line there aren't nick suffix or whatever, just - )
     
  5. Okay!
    If I use 0123456789 continually at one line, it's 23.
     
  6. But never mind i will figure someting out.
    I'm making a centered message:
    Code (Text):
    player.sendMessage(StringUtils.center(ChatColor.GRAY + "" + ChatColor.STRIKETHROUGH + "--------------------------------------", 53));