code: @SneakyThrows
     public static void loadConfig(Resource resource) {
        if (resource == null || !resource.exists()) {
           return;
        }
        if (resource.path() != null && getInstance().loaded.contains(resource.path())) {
           return; //Only load once!
        }
        new ConfigParser(resource).parse();
        if (resource.path() != null) {
           getInstance().loaded.add(resource.path());
        }
     }
docs: Loads a config file
  
  @param resource The config file