Bukkit/Bukkit — pull request #379 by ChrizC (2011-10-12 22:57:12+00:00)
Title: Initialize, load and save YamlConfigurations like old Configurations.

This pull allows the plugin developer to initialize YamlConfigurations like the old Configurations:

YamlConfiguration config = new YamlConfiguration(new File(plugin.getDataFolder(), "config.yml"));

Then, they can save and load the file, simply by using:

config.load()
and
config.save()

If the YamlConfiguration is initialized some other way (perhaps using plugin.getConfig()), and they try to use the above methods, they'll get an NPE.

You can still use config.load(File) and config.save(File), even with a YamlConfiguration initialized as above.

This method is extremely useful for the developer who wants to make multiple configurations quickly and easily, without creating a new File object every time they want to save.