Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onEnable()
- {
- File config = new File(getDataFolder(), "config.yml");
- try{
- if(!config.exists())
- {
- getConfig().options().copyDefaults(true);
- getConfig().set("Option.active", Boolean.valueOf(true));
- saveConfig();
- saveDefaultConfig();
- }
- }catch(Exception e)
- {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment