Configs like this

Discussion in 'Plugin Development' started by Fabis94, Jul 21, 2011.

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

    Fabis94

    Okay I know I can create a config file, but how do I make it so the set configurations are like this:

    Code:
    setting1:
            thing1:
            thing2:
    setting2:
            thing1:
            thing2:
    So like a setting has more settings attached to it. This is so I can add configurations for each player.

    Also how do I create multiple config files? I don't know if you can specify the file name of a config file when you define it (with public Configuration config; )
     
  2. Offline

    RedFoxRedI

    I think you are looking for the typical .yml files used by many bukkit plugins.
     
  3. Offline

    coder13

    you do, something like this
    Code:
    Config.getString("setting1.thing1");
    Config.getString("setting1.thing2");
    Config.getString("setting2.thing1");
    Config.getString("setting2.thing2");
     
  4. Offline

    Vaupell

    Dont mind some newb, editing his own reply's, when failing to stay on topic :p
     
Thread Status:
Not open for further replies.

Share This Page