Advertisement
william200027

Java Stuff Rubis Erlysium

Mar 4th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.47 KB | None | 0 0
  1. package StuffRubisEralysium;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.Material;
  5. import org.bukkit.inventory.ItemStack;
  6. import org.bukkit.inventory.ShapedRecipe;
  7. import org.bukkit.inventory.meta.ItemMeta;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. public class MainClass extends JavaPlugin{
  11.  
  12.     @SuppressWarnings("deprecation")
  13.     public void onEnable(){
  14.         getLogger().info("ON");
  15.        
  16.         ItemStack Tete  = new ItemStack(Material.CHAINMAIL_HELMET, 1);
  17.         ItemStack Plastron = new ItemStack(Material.CHAINMAIL_CHESTPLATE, 1);      
  18.         ItemStack Pantalon = new ItemStack(Material.CHAINMAIL_LEGGINGS, 1);    
  19.         ItemStack Bottes = new ItemStack(Material.CHAINMAIL_BOOTS, 1);
  20.        
  21.        
  22.        
  23.         ItemMeta tripm = Tete.getItemMeta();
  24.         ItemMeta tripm2 = Plastron.getItemMeta();
  25.         ItemMeta tripm3 = Pantalon.getItemMeta();
  26.         ItemMeta tripm4 = Bottes.getItemMeta();
  27.        
  28.        
  29.        
  30.         tripm.setDisplayName(ChatColor.RED+"Casque en rubis");
  31.         tripm2.setDisplayName(ChatColor.RED+"Plastron en rubis");
  32.         tripm3.setDisplayName(ChatColor.RED+"Pantalon en rubis");
  33.         tripm4.setDisplayName(ChatColor.RED+"Bottes en rubis");
  34.        
  35.        
  36.        
  37.         Tete.setItemMeta(tripm);
  38.         Plastron.setItemMeta(tripm2);
  39.         Pantalon.setItemMeta(tripm3);
  40.         Bottes.setItemMeta(tripm4);
  41.        
  42.        
  43.        
  44.         ShapedRecipe recette = new ShapedRecipe(Tete);
  45.         ShapedRecipe recette2 = new ShapedRecipe(Plastron);
  46.         ShapedRecipe recette3 = new ShapedRecipe(Pantalon);
  47.         ShapedRecipe recette4 = new ShapedRecipe(Bottes);
  48.        
  49.         byte args0 = 1;
  50.        
  51.         recette.shape(new String[] {"ppp","p p","   "});
  52.         recette.setIngredient('p', Material.INK_SACK.getNewData(args0));
  53.         getServer().addRecipe(recette);
  54.        
  55.         recette.shape(new String[] {"   ","ppp","p p"});
  56.         recette.setIngredient('p', Material.INK_SACK.getNewData(args0));
  57.         getServer().addRecipe(recette);
  58.        
  59.         recette2.shape(new String[] {"p p","ppp","ppp"});
  60.         recette2.setIngredient('p', Material.INK_SACK.getNewData(args0));
  61.         getServer().addRecipe(recette2);
  62.        
  63.         recette3.shape(new String[] {"ppp","p p","p p"});
  64.         recette3.setIngredient('p', Material.INK_SACK.getNewData(args0));
  65.         getServer().addRecipe(recette3);
  66.        
  67.         recette4.shape(new String[] {"p p","p p","   "});
  68.         recette4.setIngredient('p', Material.INK_SACK.getNewData(args0));
  69.         getServer().addRecipe(recette4);
  70.        
  71.         recette4.shape(new String[] {"   ","p p","p p"});
  72.         recette4.setIngredient('p', Material.INK_SACK.getNewData(args0));
  73.         getServer().addRecipe(recette4);
  74.     }
  75.  
  76.     public void onDisable(){
  77.         getLogger().info("OFF");
  78.     }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement