Ability to give plugin.yml
permissions to console only
#6499
Labels
Category: API
Related to the plugin API
Easy task
Probably really easy to do, good task for first-time contributors
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
Now if you specify the permission, marked as "default: false", the console won't be able to run the command
I suggest allowing the ConsoleCommandSender to execute such commands
Justification
It is often necessary to restrict a dangerous (or unwanted) command even to server operators. In this case, access to this command can be given manually to players through the permission manager. But in that case, the ConsoleCommandSender will lose the access to it, which is confusing
Alternative methods
Code like this may be used to force-grant the permission
The text was updated successfully, but these errors were encountered: