timbru31

CookMe

Oct 23rd, 2011
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. package de.xghostkillerx.cookme;
  2.  
  3. //bla
  4. import org.bukkit.configuration.file.*;
  5.  
  6.  
  7. public class CookMe extends JavaPlugin {
  8.    
  9.     //bla
  10.     FileConfiguration config;
  11.  
  12.  
  13.     public void onEnable() {
  14.        
  15.         // Config
  16.         config = this.getConfig();
  17.         config.options().copyDefaults(true);
  18.         loadConfig();
  19.         saveConfig();
  20.        
  21.         // bla
  22.     }
  23.  
  24.     public void loadConfig() {
  25.         config.addDefault("configuration.test", true);
  26.         saveConfig();
  27.     }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment