Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

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"));
Comment

PREVIOUS NEXT
Code Example
Java :: java get amount of enums 
Java :: geting max value in priority queue java 
Java :: java load file from resources 
Java :: scan.nextline not waiting for input 
Java :: method to check parameters in java 
Java :: bloomreach remove property 
Java :: Could not identify launch activity: Default Activity not found 
Java :: how to create a list in java 
Java :: how Resolve FragmentManager fm =getActivity().getSupportFragmentManager(); 
Java :: rdd. map with condition 
Java :: Input console using java 
Java :: java swing stripes 
Java :: spring data rest format time and date 
Java :: remove action bar android studio 
Java :: how to byheart faster 
Java :: create map java 
Java :: add oracle jdbc driver to eclipse java project 
Java :: check if table exist sqlite java 
Java :: add extension quarkus 
Java :: check if string is null or empty java 
Java :: java http request post 
Java :: java for range loop 
Java :: last day of month from localdate java 
Java :: bufferedreader for input in java 
Java :: difference between abstract class and final 
Java :: java regex ip 
Java :: char cannot be converted to string 
Java :: resource leak java 
Java :: write json string to file in java 
Java :: offsetdatetime to date 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =