Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package de.xghostkillerx.cookme;
- //bla
- import org.bukkit.configuration.file.*;
- public class CookMe extends JavaPlugin {
- //bla
- FileConfiguration config;
- public void onEnable() {
- // Config
- config = this.getConfig();
- config.options().copyDefaults(true);
- loadConfig();
- saveConfig();
- // bla
- }
- public void loadConfig() {
- config.addDefault("configuration.test", true);
- saveConfig();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment