Skip to content

BlcDragon/objconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

objconfig - YAML\JSON Config Wrapper

HowTo

Main interface is ConfigurationSection All configs implements it
There is also two loaders

  • JsonConfiguration for json
  • YamlConfiguration for yaml
public void loadConfig(String validJson){
    JsonConfiguration jsonConfig = JsonConfiguration.loadConfiguration(validJson);
    //valid json is valid yaml
    YamlConfiguration yamlConfig = YamlConfiguration.loadConfiguration(validJson);
}

There is detailed documentation for main classes and simple named methods, so it would not be hard

Migrate to 2.0.0

There is only one really important point

  • createConfigurationSection() now not return section if it exists. This section will be ERASED and new created section will be returned, so be carefully
    • getOrCreateSection() method will work as old createConfigurationSection() method

About

YAML\JSON Config Wrapper

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages