Add a method to set a config property for all configs at once.

This commit is contained in:
asofold 2013-01-19 21:43:31 +01:00
parent 9810c5c46b
commit c8c4d4c9cc

View File

@ -302,4 +302,15 @@ public class ConfigManager {
worldConfig.regenerateActionLists();
}
}
/**
* Set a property in all configs. Might use with DataManager.clearConfigs if configs might already be in use.
* @param path
* @param value
*/
public static void setForAllConfigs(String path, Object value){
for (final ConfigFile cfg : worldsMap.values()){
cfg.set(path, value);
}
}
}