Skip to content

Fix command function perm checking#8602

Closed
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:fix/cmd-func-perm-check
Closed

Fix command function perm checking#8602
Machine-Maker wants to merge 1 commit into
PaperMC:masterfrom
Machine-Maker:fix/cmd-func-perm-check

Conversation

@Machine-Maker
Copy link
Copy Markdown
Member

When a command function tried to parse a command above it's configured permission level (see function-permission-level in `server.properties), it would throw a UOE due to a badly structured conditional in CommandSourceStack from upstream. Now instead of a UOE it throws an unknown command error, as it would in vanilla on an invalid command.

@Machine-Maker Machine-Maker requested a review from a team as a code owner December 2, 2022 16:38
@Machine-Maker
Copy link
Copy Markdown
Member Author

Apparently opened another PR that makes this change... idk how I ended up opening 2 prs separated by 6 months that fix the same problem, but whatever. Was done in #9411

@Machine-Maker Machine-Maker deleted the fix/cmd-func-perm-check branch November 30, 2023 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

1 participant