Advertisement
Vilicus

CloneMap

Jan 31st, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. package us.nerdwood.Vilicus.CloneMap;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.Material;
  6. import org.bukkit.inventory.ItemStack;
  7. import org.bukkit.inventory.ShapedRecipe;
  8. import org.bukkit.plugin.PluginDescriptionFile;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. public class CloneMap extends JavaPlugin{
  12.     public static CloneMap plugin;
  13.     public final Logger logger = Logger.getLogger("Minecraft");
  14.  
  15.     public void onDisable() {
  16.         PluginDescriptionFile pdffile = this.getDescription();
  17.         this.logger.info(pdffile.getName() + " is now disabled.");
  18.     }
  19.     public void onEnable() {
  20.         PluginDescriptionFile pdffile = this.getDescription();
  21.         this.logger.info(pdffile.getName() + " version " + pdffile.getVersion() + " is enabled.");
  22.         ShapedRecipe clonedMap = new ShapedRecipe(new ItemStack(Material.MAP, 2));
  23.             clonedMap.shape("AAA", "ABA", "AAA");
  24.             clonedMap.setIngredient('A', Material.PAPER);
  25.             clonedMap.setIngredient('B', Material.MAP);
  26.         getServer().addRecipe(clonedMap);
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement