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

op command text does not give error and turn red if entered text is invalid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1 Release Candidate 1, 1.20.1, 23w31a, 23w33a, 23w35a, 1.20.2 Pre-release 2, 1.20.2 Pre-Release 3, 1.20.2 Pre-Release 4, 1.20.2 Release Candidate 1, 1.20.2 Release Candidate 2, 1.20.2, 23w40a, 23w41a, 23w42a, 23w43a, 23w43b, 23w44a, 23w45a, 23w46a, 1.20.3 Pre-Release 1, 1.20.3 Pre-Release 2, 1.20.3 Pre-Release 3, 1.20.3 Pre-Release 4, 1.20.3 Release Candidate 1, 1.20.3, 1.20.4 Release Candidate 1, 1.20.4, 23w51b, 24w03b, 24w05a, 24w06a, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 24w13a, 24w14a, 1.20.5 Pre-Release 1, 1.20.5 Pre-Release 2, 1.20.5 Pre-Release 3, 1.20.5 Pre-Release 4, 1.20.5 Release Candidate 1, 1.20.5 Release Candidate 2, 1.20.5, 1.20.6 Release Candidate 1, 1.20.6, 24w18a, 24w19b, 24w20a, 24w21a, 24w21b, 1.21 Pre-Release 1, 1.21 Pre-Release 2, 1.21 Pre-Release 3, 1.21 Pre-Release 4, 1.21 Release Candidate 1, 1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a, 24w40a, 1.21.2 Pre-Release 1, 1.21.2 Pre-Release 2, 1.21.2 Pre-Release 3, 1.21.2 Release Candidate 1, 1.21.2 Release Candidate 2, 1.21.2, 24w44a, 1.21.3, 24w45a, 24w46a, 1.21.4 Pre-Release 1, 1.21.4 Release Candidate 3, 1.21.4, 25w02a, 25w03a, 25w04a, 25w05a, 25w06a
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      Since Minecraft Java usernames cannot be shorter than 3 characters or longer than 16, an error should be given when typing the /op command with either of those parameters.

      An error should also be given if special characters other than an underscore are entered.

      Current Behavior

      The commands

      /op abcdefghijklmnopq
      
      /op *$&$#

      both output "That player does not exist" and the entered text in chat remains blue indicating there is no error.

      Expected Behavior

      To be clear I am referring to when you type out the player name after the command. Like in the image with /give, the text is red because that item is not valid. In the case of /op and /deop, if a name is 3-16 characters, I believe expected behavior is to have the coloring be blue, unless an invalid character is present in which case have it turn red with an error such as the one with /give. Otherwise have the coloring be red with an error.

      Based on information here https://help.minecraft.net/hc/en-us/articles/4408950195341-Minecraft-Java-Edition-Username-VS-Gamertag-FAQ I would expect commands containing such criteria to give some sort of error while typing. Although the current error is technically correct in that the player indeed does not exist, it also cannot exist.

      Since it is impossible to have such usernames, errors such as "Username cannot contain <character>." or "Username cannot be <shorter/longer> than <length>." would probably be expected behavior.

      However, there do exist accounts with usernames shorter than 3 characters. such as X (probably created before the username limitations were introduced?) https://namemc.com/profile/X.1 , so implementing such behavior I have described would disallow making those accounts an operator (besides manually editing ops.json).

       

       

       

            Unassigned Unassigned
            mattp_12 mattp_12
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: