BasicCommand permission is not visible through the CommandMap #11092
Labels
resolution: works as intended
Working as it should / expected to
type: bug
Something doesn't work as it was intended to.
version: 1.21
Game version 1.21
Expected behavior
Using Paper's
BasicCommand
API, I can define a permission string that is required for my command (#11047). When I check the permission of this command in the CommandMap, I expect it to return the value I defined.Observed/Actual behavior
The result of
Command#getPermission
isnull
.Steps/models to reproduce
This is the only code in my plugin:
When I add this plugin to the server and start it, I get these log messages:
I expect it to tell me
Permission: custom.permission
, but it actually saysPermission is null
.Plugin and Datapack List
Paper version
Other
I added LuckPerms to my server and confirmed that my player can only access the
/test
command if they have the permissioncustom.permission
.The text was updated successfully, but these errors were encountered: