implementing a pre-set config file. Like a plugin.yml

Discussion in 'Plugin Development' started by DeadlyScone, Apr 24, 2012.

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

    DeadlyScone

    i was wondering how people make configuration files in eclipse. I have made a config.yml next to my plugin.yml and i want to place it in the plugins directory just like where you would find a normal config file.
    Any ideas?

    Thanks for the help!
     
  2. You'll need to use getConfig().options().copyDefaults(true) and saveConfig(), then it will create a config file from your preset file.
     
  3. Offline

    messageofdeath

    Or you can use
    PHP:
    this.saveDefaultConfig();
     
    //And it will save everything event the #
     
  4. Offline

    DeadlyScone

    i already figured out a way. thanks though.
     
Thread Status:
Not open for further replies.

Share This Page