CC: Tweaked

CC: Tweaked

57M Downloads

UserLevel.OWNER does not account for op-level being 4.

SquidDev opened this issue ยท 0 comments

commented

Minecraft Version

1.16.x

Version

1.98.2

Details

The first code block will fall through, meaning we just check the permission level - which is 4.

https://github.com/SquidDev-CC/CC-Tweaked/blob/9fbcbae5b390e3fe0d1cc4efcf1019144a9e5185/src/main/java/dan200/computercraft/shared/command/UserLevel.java#L60-L71

Instead we should check for OWNER and then either:

  • For dedicated servers, check we're the server console.
  • For single player servers, check we're the owner as before.