Solved Config.yml inside of plugin

Discussion in 'Plugin Development' started by Freelix2000, Jun 6, 2014.

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

    Freelix2000

    I already know how to create a config.yml as well as other .yml files using Bukkit's API, but when I look at many plugins' code, I see that plugins with complicated configs usually have a "config.yml" in the same place as their plugin.yml in their plugin. I assume this means that the file is created inside the plugin, then copied and loaded as a config. How is this done? I am working on a project in which I might want to add comments outside of the header, and this seems to be the way to do it.
     
  2. Offline

    fireblast709

    Freelix2000 create a config.yml next to plugin.yml, fill it with config & comments, and copy it using saveDefaultConfig() (the config.yml in the jar is referred to as the 'default config')
     
  3. Offline

    Gater12

  4. Offline

    Freelix2000

    It worked! Thank you!
     
Thread Status:
Not open for further replies.

Share This Page