Answers for "bungeecord configuration api"

1

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"));
Posted by: Guest on October-09-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language