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

Non-op players cannot use all op permission level 0 commands on server

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.9.2, Minecraft 1.11, Minecraft 1.11.2
    • Confirmed
    • (Unassigned)

      The bug

      A non-operator player cannot use all commands with op permission level 0.

      Affected commands

      • /list

      How to reproduce

      1. Try as a non-op to use one of the affected commands
      2. Op yourself
      3. Stop the server
      4. Open the ops.json file and change the level value of your entry to 0
      5. Start the server
      6. Try to use one of the affected commands
        → Despite the fact that the affected command requires op level 0, which in theory everyone has, you are unable to use it if you are not an op

      Code analysis

      The following is based on a decompiled version of Minecraft 1.9 using MCP 9.24 beta.

      The reason for this is that the method net.minecraft.entity.player.EntityPlayerMP.canCommandSenderUseCommand(int, String) explicitly tests if the command is either "tell", "help", "me" or "trigger". Instead it would make sense to test if the required permission level is 0 or less.

            Unassigned Unassigned
            marcono1234 [Mod] Marcono1234
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: