79416263

Date: 2025-02-05 21:45:01
Score: 0.5
Natty:
Report link

You can get it like this, it will also work with keys containing dots :

ConfigObject getConfigObjectFromKey(String key) {
    List<String> keyParts = key.split('\\.')
    ConfigObject conf = Holders.config
    keyParts.each { String part -> conf = conf[part] as ConfigObject }
    return conf
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Skirlyx