Plugin.yml permission with multiple parent permissions

I understand that permissions can have children that are specified in plugins.yml, but is there any way to assign a single permission as a child of multiple different permissions (like in the example below)?

My plugin uses a custom sub command handler so the only command in plugins.yml is “myplugin”, and I want there to be a permission assigned to it in plugins.yml directly. The only way I could think of doing this is to add the permission myplugin.command.base which is a child of all the other command permissions, but this didn’t work. Does anyone have ideas or alternatives for how I can do this?

Thanks!

plugin.yml permissions (my not working idea to solve my problem)
permissions:
  myplugin.*:
    description: Includes all permissions for this plugin
    children:
      myplugin.command.*: true

  myplugin.command.*:
    description: Allows a player to run any of this plugin's commands
    children:
      myplugin.command.reload: true
      myplugin.command.info: true
      myplugin.command.diamond: true


  myplugin.command.reload:
    description: Allows a player to reload this plugin's config files
    children:
      myplugin.command.base: true
  myplugin.command.info:
    description: Allows a player to get information about this plugin
    children:
      myplugin.command.base: true
  myplugin.command.diamond:
    description: Allows a player to run the /myplugin diamond command to get a diamond
    children:
      myplugin.command.base: true

Edit:
After further investigating, I found that NONE of my permission inheritance works correctly, including wildcard permissions. I’m using default LuckPerms if it makes a difference.

1 Like