Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-141382

Problem with changing prefix & suffix in 1.13

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13.2
    • None
    • Java 1.8, Windows 7 Ultimate
    • Unconfirmed

      As it is in the title, the problem is when I try to change the color of my name with the scoreboard, it doesn't change it, but it is white. This error also occurred in MC 1.13.1 and 1.13.2 and not in versions 1.12 and below.

      The code basics are the method of retrieving player etc... all right.

      The code is:

       

      Scoreboard tboard = player.getScoreboard();
      Team team = tboard.getTeam(player.getName()) == null ? tboard.registerNewTeam(player.getName()) : tboard.getTeam(player.getName());
      team.setNameTagVisibility(NameTagVisibility.ALWAYS);
      team.setPrefix(ChatColor.translateAlternateColorCodes('&', "&c&lO&6 "));
      team.setSuffix("");
      player.setScoreboard(tboard);
      

       

       

            Unassigned Unassigned
            montlikadani montlikadani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: