Need Help with features plugin!

Discussion in 'Plugin Development' started by djkaye, Mar 26, 2016.

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


    Hi I am programming my first plugin and am wanting to make my plugin read a config file in a certian way.
    for example in this case if you do /features I wish it to show:
    /feature feature1 command to access help with this feature should be linked here.
    /feature feature2 another feature.
    /feature feature3 Don't get board of all the features.
    plugin code:
    I also want it to create commands based on what you put in config.yml for example if I changed it to:
    then it would create the commands /feature harry, feature tom and feature bombae.
    and when you do restart/reload the server after changing the config messages or whatever it will update the config file to a bit like this:
    in this example when you do /features feature1 then it will say
    - "this will allow you to protect land"
    - "/command"

    I hope somebody is good enough to help me - thanks!
  2. Offline

    timtower Administrator Administrator Moderator

    @djkaye configuration.getKeys(false)
    Will return the sections so that you don't need to list them anymore.
    Get args[0] and find it in the config if it exists.
  3. Offline


Thread Status:
Not open for further replies.

Share This Page