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

Brigadier Json Argument accepts an extra character

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.16.5
    • None
    • Java 8, Windows 10
    • Unconfirmed
    • (Unassigned)

      Hello,

      I'm working on a plugin for the Sponge project and we discovered a client and server bug about the JSON (ComponentArgument.textArgument).

      Indeed, this one accepts an extra character after the last bracket of the JSON, but it is not taken into account when the parser tries to read the JSON :

      • Scoreboard Objectives Add command: (see brigadierJSON1.png)
      • Scoreboard Objectives Modify Displayname command: (see brigadierJSON2.png)
      • Team Add command: (see brigadierJSON3.png)

      This bug is not really annoying for the vanilla game because in fact, this JSON argument is always at the end of the command, so there is no other argument to parse.

      However, plugins like mine on the SpongeAPI may use this argument in the middle of a command which can lead to client completion errors (see jsoncustom.png).

      As this bug also affects the client, the Sponge team cannot totally manage to fix this by its own.

      Thanks for reading this issue.

        1. brigadierJSON1.png
          brigadierJSON1.png
          18 kB
        2. brigadierJSON2.png
          brigadierJSON2.png
          21 kB
        3. brigadierJSON3.png
          brigadierJSON3.png
          14 kB
        4. jsoncustom.png
          jsoncustom.png
          20 kB

            Unassigned Unassigned
            Kazź Thibault HENRY
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: