Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/hunger command requires permission level 4 and is not allowed in command blocks. #150

Closed
James103 opened this issue May 27, 2020 · 1 comment

Comments

@James103
Copy link
Contributor

As shown in the following code, the /hunger command requires permission level 4, rendering it unable to be used in command blocks. Many other commands that strictly only modify player and world data (like /xp, /reload, /summon, /data) only require permission level 2 and are able to be used in command blocks. Why is that the case and can the /hunger command be changed to require permission level 2 and work in command blocks like other similar commands?

public int getRequiredPermissionLevel()
{
return 4;
}

@squeek502
Copy link
Owner

squeek502 commented May 27, 2020

Was probably copied from somewhere without realizing what it meant. Will happily accept a PR that fixes this.

squeek502 added a commit that referenced this issue May 27, 2020
Fix #150: /hunger permission level too high
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants