Fix startup error on Windows.

Psh who uses Windows anyways :P
This commit is contained in:
Eric Stokes 2011-10-16 00:01:09 -06:00
parent 5d11e27eb0
commit 01bed7cc4b

View File

@ -256,7 +256,7 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
public void loadConfigs() {
// Now grab the Configuration Files.
this.multiverseConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
Configuration coreDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream("/defaults/config.yml"));
Configuration coreDefaults = YamlConfiguration.loadConfiguration(this.getClass().getResourceAsStream(File.separator + "defaults" + File.separator + "config.yml"));
this.multiverseConfig.setDefaults(coreDefaults);
this.multiverseConfig.options().copyDefaults(true);
this.worldManager.loadWorldConfig(new File(getDataFolder(), "worlds.yml"));