mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-10-06 10:27:26 +02: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();
|
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