How do I create a * permission node?

Discussion in 'Plugin Development' started by NSPredator, Dec 2, 2013.

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

    NSPredator

    Hello,
    I am currently developing my first plugin. I am very new to creating plugins. Here are my current commands and permission nodes for my plugin:
    /ca | colourassistant.ca
    /ca 2 | colourassistant.ca2
    /ca 3| colourassistant.ca3
    /ca 4 | colourassistant.ca4

    I want to create a node which will allow server owners to just do colourassistant.* to their permission file instead of entering each node manually. How do I do this?
    Many thanks,
    NSPredator
     
  2. Offline

    Sagacious_Zed Bukkit Docs

  3. Offline

    the_merciless

    You do not need to add this into your plugin. Your permissions plugin will do this for you.
     
  4. Offline

    Chinwe

    You can do it in your plugin.yml like this:
    Code:
    commands:
      ca:
        usage: bleh
        bleh: blah
        ...
     
     
    permissions:
        colourassistant.*:
            description: Allows use of all colours
            default: op
            children:
                colourassistant.ca: true
                colourassistant.ca2: true
                colourassistant.ca3: true
                ...
    Look at the bottom of the plugin.yml tutorial for the explanation :)
     
  5. Offline

    NSPredator

    Thank you so much everyone.
    NSPredator
     
  6. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

    False. A small subset of permissions plugins will attempt to do that for you. There is no such thing as wildcarding in the Bukkit permissions API
     
Thread Status:
Not open for further replies.

Share This Page