bungeecord config code example
Example: bungeecord plugin add configs
// Load config
Configuration config = ConfigurationProvider.getProvider(YamlConfiguration.class).load(new File(getDataFolder(), "config.yml"));
// Sets a string
config.set('test', 'This is a test');
// Loads a string
config.getString('test'); // test
// Save config
ConfigurationProvider.getProvider(YamlConfiguration.class).save(config, new File(getDataFolder(), "config.yml"));