Automatically declare parent permission groups #6324
Labels
Category: API
Related to the plugin API
Category: UI
Related to the user interface (e.g. commands, terminal output)
Type: Enhancement
Contributes features or other improvements to PocketMine-MP
Description
Currently, the permission system doesn't make any assumptions about the strings used to identify permissions. However, in practice, permissions typically look like this:
pocketmine.command.gamemode.self
However, if trying to set the permission
pocketmine.command.gamemode
to override all of the sub permissions, nothing will happen.This issue proposes that
.
should be considered as a hierarchy separator by the internal system, and parent permission nodes automatically declared to allow users to get the expected behaviour.This means that registering
pocketmine.command.gamemode.self
would generate the following hierarchy:Alternative methods
The text was updated successfully, but these errors were encountered: