Mojira Archive
MC-101255

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

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.

Invalid

Marcono1234

2016-04-24, 02:11 PM

2020-02-16, 01:38 AM

2020-02-16, 01:34 AM

2

3

Confirmed

(Unassigned)

command, list, op, permission, server

Minecraft 1.9.2, Minecraft 1.11, Minecraft 1.11.2

-