Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 534 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 534 Bytes

Usage Example

public class Configs extends JavaPlugin {

    private static CustomYml config;
    
    public void onEnable(){
      loadConfigs();
    }

    public void loadConfigs(){
        config = new CustomYml(this).createNewOrLoad("config.yml"); //Makes a new instance
        
        getConfig().set("a", "b");
        config.saveToFile(); //Saving the changes into the physical file
    }

    public static CustomYml getConfig() { return config; }
}

Its very easy to use, and pretty straight forward.