1.8.8 Tablist teams size of prefix

Discussion in 'Spigot Plugin Development' started by zt38475tz, Feb 10, 2020.

  1. Hello guys, another question about these ugly scoreboards:
    My Team admin:
    Code (Text):
    Team admin = scoreboard.registerNewTeam("00001Admin");
            admin.setPrefix("§4Admin §7| §4" + player.getName());
    So with my name TsundereLover the string is longer than 16 characters. I tried to fix it via using a substring and setting the prefix and suffix again with the substring but the server doesn't regognize, so I can't join.
    Anyone knows how to fix the char length?
  2. SteelPhoenix


    Why are you adding your playername to the prefix?
    Also, use the chat color enum, it exists for a reason.
  3. Don't add the players name to the prefix, The prefix, name and suffix each have a 16 character limit so 48 in total. You can't bypass this limit unless you update because newer versions you can have 64 characters in total.
  4. Even without setting the name in the prefix just §4Admin §7| §4 the length doesn't change. Adding the name to suffix makes no sense too.
  5. Is there a way to short it, tried with substring but it didn't work