Advertisement
sebcraftservers

MyOwnPlanet....java MyOwnPlanetWorldGeneration Bukkit Plugin

Apr 7th, 2014
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.08 KB | None | 0 0
  1. package me.sebagius7110.sebcraft.minigame.MyOwnPlanetWorldGenerator.main;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import me.sebagius7110.sebcraft.minigame.MyOwnPlanetWorldGnerator.Generation.PlanetWorldGenerator;
  6.  
  7. import org.bukkit.generator.ChunkGenerator;
  8. import org.bukkit.plugin.PluginDescriptionFile;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. public class MyOwnPlanetWorldGenerator extends JavaPlugin{
  12.    
  13.     public static MyOwnPlanetWorldGenerator plugin;
  14.     public final Logger logger = Logger.getLogger("Minecraft");
  15.    
  16.     @Override
  17.     public void onEnable() {
  18.        
  19.         PluginDescriptionFile pdfFile = this.getDescription();
  20.         this.logger.info("[" + pdfFile.getName() + "]"+ " Version " + pdfFile.getVersion() + " Has Been Enabled Succssesfully!");
  21.        
  22.     }
  23.    
  24.     @Override
  25.     public void onDisable() {
  26.        
  27.         PluginDescriptionFile pdfFile = this.getDescription();
  28.         this.logger.info("[" + pdfFile.getName() + "]" + " Has Been Disabled Succssesfully!");
  29.        
  30.     }
  31.    
  32.     public ChunkGenerator getDefaultWorldGenerator(String worldname, String id) {
  33.        
  34.        
  35.         return new PlanetWorldGenerator(this);
  36.     }
  37.    
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement