spigot make config file

Solutions on MaxInterview for spigot make config file by the best coders in the world

showing results for - "spigot make config file"
Lola
21 Mar 2017
1	@Override
2    public void onEnable() {
3        createFiles();
4    }
5
6    private void createFiles(){
7        File configf = new File(getDataFolder(), "config.yml");
8
9        if(!configf.exists()){
10            configf.getParentFile().mkdirs();
11            saveResource("config.yml", false);
12        }
13        FileConfiguration config = new YamlConfiguration();
14
15        try{
16            config.load(configf);
17        }catch (IOException | InvalidConfigurationException e){
18            e.printStackTrace();
19        }
20    }
Juana
28 Oct 2018
1    public private File configf;
2    public FileConfiguration config;
3
4    private void createFiles(){
5        configf = new File(getDataFolder(), "config.yml");
6
7        if(!configf.exists()){
8            configf.getParentFile().mkdirs();
9            saveResource("config.yml", false);
10        }
11        config = new YamlConfiguration();
12
13        try{
14            config.load(configf);
15        }catch (IOException | InvalidConfigurationException e){
16            e.printStackTrace();
17        }
18    }
queries leading to this page
save custom config file spigotspigot file config docsconfig file not creating spigotworking with config files spigotspigot make config filespigot config filespigot edit configspigot creating configminecraft spigot how to config filewhere is the config file stored spigothow to create config spigotspigot plugin config fileconfiguration file spigotspigot create configcustom config file spigotcustom configuration files spigotuse config spigotwrite thing in the config files spigotwrite config spigothow to put minecraft spigot config filespigot configuration filesexample config spigotmake config in spigotspigot java create config fileminecraft spigot save configspigot create config filespigot creating a configspigot load custom configconfig spigot minecraftcreate a config spigotcreate config spigotrun command from config file spigotspigot confighow to make config file spigotspigot config file pluginminecraft spigot how to confighow do you for on config spigothow to add something to a config spigotcustom config files spigotspigot config tutorialset config spigotspigot set config valueconfiguration files spigotwhere are config files spigotspigot custom configcreate the config file with code spigotcreate config file spigotconfig file spigotcustom config spigothow to use config files in spigotcustom command with config file spigotconfig command spigotspigot coding custom config filecustom config files defaults spigothow to write in config spigotmking a config file spigotspigot load custom configuration filespigot generate config filespigot make config file for pluginconfig in spigotminecraft spigot plugin configconfig spigot with commandspigot mc config filesload custom config spigotconfig file to java spigotconfig spigotspigot plugin configspigot custom config fileshow to create a custom config file in spigotspigot multiple config filessetup config spigohow to read config file spigotsave config spigotspigot config filesusing config files in spigotspigot write to configminecraft spigot 2c how to make a configconfig files spigoconfig set spigotmake a custom config spigotspigot file configspigot java configmake a config spigotspigot create the config filejava spigot use configspigot config codehow to create a config file spigotspigot create config file for pluginwrite config file spigot codesave to config spigotcreate custom config file spigot making a config file spigotconfig fiel spigot customspigot save default configcreate a config file spigotspigot save to custom config filecreate config file in spigotadd configuration file spigotspigot modify confighow to make a config file spigotspigot how to use configuration filehow to make a config spigotmspigot save configspigot make config file