AppleCore

AppleCore

56M Downloads

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

James103 opened this issue ยท 1 comments

commented

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;
}

commented

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