[SuperPerms] Given a Permissions String, how to check if it's a compound permission?

Discussion in 'Plugin Development' started by alexanderpas, Sep 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    alexanderpas

    Assume a Plugin has specified the following in it's plugin.yml.
    Code:
    permissions:
        doorman.*:
            description: Gives access to all doorman commands
            children:
                doorman.kick: true
                doorman.ban: true
                doorman.knock: true
                doorman.denied: false
        doorman.kick:
            description: Allows you to kick a user
            default: op
        doorman.ban:
            description: Allows you to ban a user
            default: op
        doorman.knock:
            description: Knocks on the door!
            default: true
        doorman.denied:
            description: Prevents this user from entering the door
    If I'm given doorman.* as a string, how can I know what those children are?

    Note that I'm not writing the doorman plugin
     
  2. Offline

    oxguy3

    Where would you be given those strings? Are you writing the Doorman plugin, or some other plugin? Please explain your needs in better detail.
     
  3. Offline

    alexanderpas

    I'm not writing the doorman plugin, but a permissions plugin, and those compound permissions are a problem in the inheritance model.
     
Thread Status:
Not open for further replies.

Share This Page