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

Typing /help + unavailable command returns "unexpected error" message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 18w19a
    • Minecraft 17w45a, Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w47b, Minecraft 17w48a, Minecraft 17w50a, Minecraft 18w01a, Minecraft 18w02a, Minecraft 18w03b, Minecraft 18w06a, Minecraft 18w09a, Minecraft 18w10d, Minecraft 18w14b, Minecraft 18w16a
    • Confirmed

      The bug

      Typing /help and a command that's not available (either because it doesn't exist, or because its usage is not allowed, e.g. when cheats are disabled) returns An unexpected error occurred trying to execute that command, which generates an exception on the game's log. This should be a less severe "Unknown command" error message.

      Note

      Prior to 18w02a this would return java.util.NoSuchElementException. It now displays a nicer message as a result of fixing MC-121662.

        1. 1.png
          1.png
          242 kB
        2. 2.png
          2.png
          251 kB

            searge [Mojang] Searge (Michael Stoyke)
            Bentroen Bentroen
            Votes:
            9 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: