Reload the config after save for the initial creation

This commit is contained in:
Eric Stokes 2011-10-17 19:09:22 -06:00
parent 6e6c40bd3b
commit 0d06fb8a0d

View File

@ -271,6 +271,8 @@ public class MultiverseCore extends JavaPlugin implements MVPlugin, Core {
this.messaging = new MVMessaging(this);
this.messaging.setCooldown(this.multiverseConfig.getInt("messagecooldown", 5000));
this.saveMVConfigs();
// Reload the configs because they're null in memory if they were default.
this.multiverseConfig = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
}
public MVMessaging getMessaging() {