mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-13 19:11:22 +01:00
Add a method to set a config property for all configs at once.
This commit is contained in:
parent
9810c5c46b
commit
c8c4d4c9cc
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user