Bukkit/Bukkit — pull request #437 by rmichela (2011-12-05 04:34:32+00:00)
Title: Added Plugin.SaveDefaultConfig() method

The Plugin.SaveDefaultConfig() method writes the contents of the default config.yml file to the default configuration location verbatim. The result is a default config.yml file with all formatting and comments preserved.

* If the default configuration directory is absent, SaveDefaultConfig() will create it.
* It the default config.yml is missing from the plugin, SaveDefaultConfig() will write out a blank file.
* If a config.yml file already exists in the target directory, SaveDefaultConfig() will not overwrite it and will write a warning in the log.