Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-3416

Inconsistent maximum prefix/suffix length for teams

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None

      Their maximum length is inconsistent with what the actual client supports and what is stated on the documentation of the API.

      As the documentation states, the maximum length for both of them is of 16 characters. But implementations as far back as 1.7.10 (as far as I checked) have always allowed up to 32 characters. That allows plugins to create prefixes/suffixes too long for the client, which disconnects from the server upon receiving.

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java#53

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/src/main/java/org/bukkit/craftbukkit/scoreboard/CraftTeam.java#67

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

              Created:
              Updated:
              Resolved: