Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package StuffRubisEralysium;
- import org.bukkit.ChatColor;
- import org.bukkit.Material;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.ShapedRecipe;
- import org.bukkit.inventory.meta.ItemMeta;
- import org.bukkit.plugin.java.JavaPlugin;
- public class MainClass extends JavaPlugin{
- @SuppressWarnings("deprecation")
- public void onEnable(){
- getLogger().info("ON");
- ItemStack Tete = new ItemStack(Material.CHAINMAIL_HELMET, 1);
- ItemStack Plastron = new ItemStack(Material.CHAINMAIL_CHESTPLATE, 1);
- ItemStack Pantalon = new ItemStack(Material.CHAINMAIL_LEGGINGS, 1);
- ItemStack Bottes = new ItemStack(Material.CHAINMAIL_BOOTS, 1);
- ItemMeta tripm = Tete.getItemMeta();
- ItemMeta tripm2 = Plastron.getItemMeta();
- ItemMeta tripm3 = Pantalon.getItemMeta();
- ItemMeta tripm4 = Bottes.getItemMeta();
- tripm.setDisplayName(ChatColor.RED+"Casque en rubis");
- tripm2.setDisplayName(ChatColor.RED+"Plastron en rubis");
- tripm3.setDisplayName(ChatColor.RED+"Pantalon en rubis");
- tripm4.setDisplayName(ChatColor.RED+"Bottes en rubis");
- Tete.setItemMeta(tripm);
- Plastron.setItemMeta(tripm2);
- Pantalon.setItemMeta(tripm3);
- Bottes.setItemMeta(tripm4);
- ShapedRecipe recette = new ShapedRecipe(Tete);
- ShapedRecipe recette2 = new ShapedRecipe(Plastron);
- ShapedRecipe recette3 = new ShapedRecipe(Pantalon);
- ShapedRecipe recette4 = new ShapedRecipe(Bottes);
- byte args0 = 1;
- recette.shape(new String[] {"ppp","p p"," "});
- recette.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette);
- recette.shape(new String[] {" ","ppp","p p"});
- recette.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette);
- recette2.shape(new String[] {"p p","ppp","ppp"});
- recette2.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette2);
- recette3.shape(new String[] {"ppp","p p","p p"});
- recette3.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette3);
- recette4.shape(new String[] {"p p","p p"," "});
- recette4.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette4);
- recette4.shape(new String[] {" ","p p","p p"});
- recette4.setIngredient('p', Material.INK_SACK.getNewData(args0));
- getServer().addRecipe(recette4);
- }
- public void onDisable(){
- getLogger().info("OFF");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement