You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: