Advertisement
Guest User

onEnable()

a guest
Jul 20th, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static File recipefile;
  2.  
  3. public void onEnable() {
  4. this.saveConfig();
  5. this.reloadConfig();
  6. createCustomConfig();
  7. recipefile = new File(this.getDataFolder(), "/recipes/");
  8. if (!recipefile.exists()) {
  9. recipefile.mkdir();
  10. Recipes.addRecipes();
  11. } else {
  12. Recipes.addRecipes();
  13. }
  14. instance = this;
  15. registerCommands();
  16. registerEvents();
  17. Bukkit.getServer().getLogger().info("SurvivalV5Core V1.0 Beta by Adventum started!");
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement