Hi, i don't know how to create config.yml Spoiler (Move your mouse to the spoiler area to reveal the content) Show Spoiler Hide Spoiler Code: private FileConfiguration customConfig = null; private File customConfigFile = null; public void reloadCustomConfig() { if (customConfigFile == null) { customConfigFile = new File(getDataFolder(), "customConfig.yml"); } customConfig = YamlConfiguration.loadConfiguration(customConfigFile); InputStream defConfigStream = this.getResource("customConfig.yml"); if (defConfigStream != null) { YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream); customConfig.setDefaults(defConfig); } } public FileConfiguration getCustomConfig() { if (customConfig == null) { this.reloadCustomConfig(); } return customConfig; } public void saveCustomConfig() { if (customConfig == null || customConfigFile == null) { return; } try { getCustomConfig().save(customConfigFile); } catch (IOException ex) { this.getLogger().log(Level.SEVERE, "Could not save config to " + customConfigFile, ex); } } public void saveDefaultConfig() { if (!configFile.exists()) { this.plugin.saveResource(fileName, false); } } This is what i put in the main class before onEnable.
FileConfiguration config; inside onenable: config = getConfig(); config.set("whatever", true); saveConfig(); profit