Emerald Eşyalar / Kaynak Kod

Anilcan44

Ağaç Yumruklayıcı
En iyi cevaplar
0
Enchant Basılmış Halde Diamond zırhtır. Farklı düzenlemeler yapılabilir :)

Emeraldtools
Kod:
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.Server;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.PrepareItemCraftEvent;
import org.bukkit.inventory.CraftingInventory;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;

public class EmeraldTools extends JavaPluginimplements Listener
{
  ItemStack EmeraldSword;
  ItemStack EmeraldSword2;
  ItemStack EmeraldSword3;
  ItemStack EmeraldPickaxe;
  ItemStack EmeraldPickaxe2;
  ItemStack EmeraldPickaxe3;
  ItemStack EmeraldAxe;
  ItemStack EmeraldAxe2;
  ItemStack EmeraldAxe3;
  ItemStack EmeraldSpade;
  ItemStack EmeraldSpade2;
  ItemStack EmeraldSpade3;
  ItemStack EmeraldHoe;
  ItemStack EmeraldHoe2;
  ItemStack EmeraldHoe3;
  ItemStack EmeraldHelm;
  ItemStack EmeraldHelm2;
  ItemStack EmeraldHelm3;
  ItemStack EmeraldChestplate;
  ItemStack EmeraldChestplate2;
  ItemStack EmeraldChestplate3;
  ItemStack EmeraldLeggings;
  ItemStack EmeraldLeggings2;
  ItemStack EmeraldLeggings3;
  ItemStack EmeraldBoots;
  ItemStack EmeraldBoots2;
  ItemStack EmeraldBoots3;
  Enchantment[] swordEnchants = {
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_ARTHROPODS,
    Enchantment.DAMAGE_ARTHROPODS,
    Enchantment.DAMAGE_ARTHROPODS,
    Enchantment.DAMAGE_ARTHROPODS, Enchantment.DAMAGE_ARTHROPODS,
  
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.FIRE_ASPECT,
    Enchantment.FIRE_ASPECT,
    Enchantment.KNOCKBACK,
    Enchantment.KNOCKBACK,
    Enchantment.LOOT_BONUS_MOBS,
    Enchantment.LOOT_BONUS_MOBS,
    Enchantment.LOOT_BONUS_MOBS,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY };
  Enchantment[] sword3Enchants = {
    Enchantment.DAMAGE_ALL,
    Enchantment.DAMAGE_UNDEAD,
    Enchantment.FIRE_ASPECT,
    Enchantment.LOOT_BONUS_MOBS };
  Enchantment[] pickEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.SILK_TOUCH,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] pick3Enchants = {
    Enchantment.DIG_SPEED,
    Enchantment.SILK_TOUCH,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] axeEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.SILK_TOUCH,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] axe3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.DIG_SPEED,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] shovelEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.DIG_SPEED,
    Enchantment.SILK_TOUCH,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] shovel3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.DIG_SPEED,
    Enchantment.SILK_TOUCH,
    Enchantment.LOOT_BONUS_BLOCKS };
  Enchantment[] hoeEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY };
  Enchantment[] hoe3Enchants = {
    Enchantment.DURABILITY };
  Enchantment[] helmEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS,
    Enchantment.OXYGEN,
    Enchantment.OXYGEN,
    Enchantment.OXYGEN,
    Enchantment.WATER_WORKER };
  Enchantment[] helm3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS,
    Enchantment.OXYGEN,
    Enchantment.WATER_WORKER };
  Enchantment[] chestEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS };
  Enchantment[] chest3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS };
  Enchantment[] legEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS };
  Enchantment[] leg3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS };
  Enchantment[] bootEnchants = {
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS,
    Enchantment.PROTECTION_FALL,
    Enchantment.PROTECTION_FALL,
    Enchantment.PROTECTION_FALL };
  Enchantment[] boot3Enchants = {
    Enchantment.DURABILITY,
    Enchantment.PROTECTION_ENVIRONMENTAL,
    Enchantment.PROTECTION_EXPLOSIONS,
    Enchantment.PROTECTION_PROJECTILE,
    Enchantment.THORNS,
    Enchantment.PROTECTION_FALL };

  @EventHandler
  public void onCraftSword(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_SWORD)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Sword")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.swordEnchants[((int)(Math.random() * this.swordEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_SWORD)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Sword")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.swordEnchants[((int)(Math.random() * this.swordEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_SWORD)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Sword")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.sword3Enchants[((int)(Math.random() * this.sword3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftPickaxe(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_PICKAXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Pickaxe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.pickEnchants[((int)(Math.random() * this.pickEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_PICKAXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Pickaxe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.pickEnchants[((int)(Math.random() * this.pickEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_PICKAXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Pickaxe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.pick3Enchants[((int)(Math.random() * this.pick3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftAxe(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_AXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Axe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.axeEnchants[((int)(Math.random() * this.axeEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_AXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Axe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.axeEnchants[((int)(Math.random() * this.axeEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_AXE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Axe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.axe3Enchants[((int)(Math.random() * this.axe3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftShovel(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_SPADE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Spade")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.shovelEnchants[((int)(Math.random() * this.shovelEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_SPADE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Spade")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.shovelEnchants[((int)(Math.random() * this.shovelEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_SPADE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Spade")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.shovel3Enchants[((int)(Math.random() * this.shovel3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftHoe(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_HOE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Hoe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.hoeEnchants[((int)(Math.random() * this.hoeEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_HOE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Hoe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.hoeEnchants[((int)(Math.random() * this.hoeEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_HOE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Hoe")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.hoeEnchants[((int)(Math.random() * this.hoeEnchants.length))], (int)(Math.random() * 5.0D));
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftHelmet(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_HELMET)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Helmet")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.helmEnchants[((int)(Math.random() * this.helmEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_HELMET)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Helmet")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.helmEnchants[((int)(Math.random() * this.helmEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_HELMET)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Helmet")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.helm3Enchants[((int)(Math.random() * this.helm3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftChestplate(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_CHESTPLATE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Chestplate")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.chestEnchants[((int)(Math.random() * this.chestEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_CHESTPLATE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Chestplate")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.chestEnchants[((int)(Math.random() * this.chestEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_CHESTPLATE)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Chestplate")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.chest3Enchants[((int)(Math.random() * this.chest3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftLeggings(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_LEGGINGS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Leggings")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.legEnchants[((int)(Math.random() * this.legEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_LEGGINGS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Leggings")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.legEnchants[((int)(Math.random() * this.legEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_LEGGINGS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Leggings")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.leg3Enchants[((int)(Math.random() * this.leg3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  @EventHandler
  public void onCraftBoots(PrepareItemCraftEvent e)
  {
    ItemStack item = e.getInventory().getResult();
    if ((item.getType().equals(Material.DIAMOND_BOOTS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Boots")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier I"))) {
      item.addUnsafeEnchantment(this.bootEnchants[((int)(Math.random() * this.bootEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_BOOTS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Boots")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier II"))) {
      item.addUnsafeEnchantment(this.bootEnchants[((int)(Math.random() * this.bootEnchants.length))], (int)(Math.random() * 5.0D));
    }
    if ((item.getType().equals(Material.DIAMOND_BOOTS)) &&
      (item.getItemMeta().getDisplayName() != null) &&
      (item.getItemMeta().getDisplayName().equals(ChatColor.GREEN + "Emerald Boots")) &&
      (item.getItemMeta().getLore() != null) &&
      (item.getItemMeta().getLore().contains(ChatColor.GOLD + "Tier III"))) {
      item.addUnsafeEnchantment(this.boot3Enchants[((int)(Math.random() * this.boot3Enchants.length))], 5);
    }
    e.getInventory().setResult(item);
  }

  public void all()
  {
    swordRecipe();
    pickaxeRecipe();
    axeRecipe();
    shovelRecipe();
    hoeRecipe();
    helmetRecipe();
    chestplateRecipe();
    leggingsRecipe();
    bootsRecipe();
  }

  public void swordRecipe()
  {
    Server server = getServer();
  
    this.EmeraldSword = new ItemStack(Material.DIAMOND_SWORD, 1);
    ItemMeta EmeraldSwordMeta = this.EmeraldSword.getItemMeta();
    EmeraldSwordMeta.setDisplayName(ChatColor.GREEN + "Emerald Sword");
    ArrayList<String> Tier1Swordlore = new ArrayList();
    Tier1Swordlore.add(ChatColor.GOLD + "Tier I");
    Tier1Swordlore.add("");
    EmeraldSwordMeta.setLore(Tier1Swordlore);
    this.EmeraldSword.setItemMeta(EmeraldSwordMeta);
  
    ShapedRecipe EmeraldSwordRecipe = new ShapedRecipe(this.EmeraldSword);
    EmeraldSwordRecipe.shape(new String[] { " E ", " E ", " S " });
    EmeraldSwordRecipe.setIngredient('E', Material.EMERALD);
    EmeraldSwordRecipe.setIngredient('S', Material.STICK);
    server.addRecipe(EmeraldSwordRecipe);
  




    this.EmeraldSword2 = new ItemStack(Material.DIAMOND_SWORD, 1);
    ItemMeta EmeraldSword2Meta = this.EmeraldSword2.getItemMeta();
    EmeraldSword2Meta.setDisplayName(ChatColor.GREEN + "Emerald Sword");
    ArrayList<String> Tier2Swordlore = new ArrayList();
    Tier2Swordlore.add(ChatColor.GOLD + "Tier II");
    Tier2Swordlore.add("");
    Tier2Swordlore.add(ChatColor.BLUE + "2x Durability");
    EmeraldSword2Meta.setLore(Tier2Swordlore);
    this.EmeraldSword2.setItemMeta(EmeraldSword2Meta);
  
    ShapedRecipe EmeraldSword2Recipe = new ShapedRecipe(this.EmeraldSword2);
    EmeraldSword2Recipe.shape(new String[] { " D ", " E ", " S " });
    EmeraldSword2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldSword2Recipe.setIngredient('E', Material.EMERALD);
    EmeraldSword2Recipe.setIngredient('S', Material.STICK);
    this.EmeraldSword2.setDurability((short)(this.EmeraldSword2.getDurability() * 2));
    server.addRecipe(EmeraldSword2Recipe);
  




    this.EmeraldSword3 = new ItemStack(Material.DIAMOND_SWORD, 1);
    ItemMeta EmeraldSword3Meta = this.EmeraldSword3.getItemMeta();
    EmeraldSword3Meta.setDisplayName(ChatColor.GREEN + "Emerald Sword");
    ArrayList<String> Tier3Swordlore = new ArrayList();
    Tier3Swordlore.add(ChatColor.GOLD + "Tier III");
    Tier3Swordlore.add("");
    Tier3Swordlore.add(ChatColor.BLUE + "3x Durability");
    EmeraldSword3Meta.setLore(Tier3Swordlore);
    this.EmeraldSword3.setItemMeta(EmeraldSword3Meta);
  
    ShapedRecipe EmeraldSword3Recipe = new ShapedRecipe(this.EmeraldSword3);
    EmeraldSword3Recipe.shape(new String[] { "DEN", " E ", " S " });
    EmeraldSword3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldSword3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldSword3Recipe.setIngredient('E', Material.EMERALD);
    EmeraldSword3Recipe.setIngredient('S', Material.STICK);
    this.EmeraldSword3.setDurability((short)(this.EmeraldSword3.getDurability() * 3));
    server.addRecipe(EmeraldSword3Recipe);
  }

  public void pickaxeRecipe()
  {
    Server server = getServer();
  


    this.EmeraldPickaxe = new ItemStack(Material.DIAMOND_PICKAXE, 1);
    ItemMeta EmeraldPickaxeMeta = this.EmeraldPickaxe.getItemMeta();
    EmeraldPickaxeMeta.setDisplayName(ChatColor.GREEN + "Emerald Pickaxe");
    ArrayList<String> Tier1Picklore = new ArrayList();
    Tier1Picklore.add(ChatColor.GOLD + "Tier I");
    Tier1Picklore.add("");
    EmeraldPickaxeMeta.setLore(Tier1Picklore);
    this.EmeraldPickaxe.setItemMeta(EmeraldPickaxeMeta);
  
    ShapedRecipe EmeraldPickaxeRecipe = new ShapedRecipe(this.EmeraldPickaxe);
    EmeraldPickaxeRecipe.shape(new String[] { "EEE", " S ", " S " });
    EmeraldPickaxeRecipe.setIngredient('E', Material.EMERALD);
    EmeraldPickaxeRecipe.setIngredient('S', Material.STICK);
    server.addRecipe(EmeraldPickaxeRecipe);
  




    this.EmeraldPickaxe2 = new ItemStack(Material.DIAMOND_PICKAXE, 1);
    ItemMeta EmeraldPickaxe2Meta = this.EmeraldPickaxe2.getItemMeta();
    EmeraldPickaxe2Meta.setDisplayName(ChatColor.GREEN + "Emerald Pickaxe");
    ArrayList<String> Tier2Picklore = new ArrayList();
    Tier2Picklore.add(ChatColor.GOLD + "Tier II");
    Tier2Picklore.add("");
    Tier2Picklore.add(ChatColor.BLUE + "2x Durability");
    EmeraldPickaxe2Meta.setLore(Tier2Picklore);
    this.EmeraldPickaxe2.setItemMeta(EmeraldPickaxe2Meta);
  
    ShapedRecipe EmeraldPickaxe2Recipe = new ShapedRecipe(this.EmeraldPickaxe2);
    EmeraldPickaxe2Recipe.shape(new String[] { "EDE", " S ", " S " });
    EmeraldPickaxe2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldPickaxe2Recipe.setIngredient('E', Material.EMERALD);
    EmeraldPickaxe2Recipe.setIngredient('S', Material.STICK);
    this.EmeraldPickaxe2.setDurability((short)(this.EmeraldPickaxe.getDurability() * 2));
    server.addRecipe(EmeraldPickaxe2Recipe);
  




    this.EmeraldPickaxe3 = new ItemStack(Material.DIAMOND_PICKAXE, 1);
    ItemMeta EmeraldPickaxe3Meta = this.EmeraldPickaxe3.getItemMeta();
    EmeraldPickaxe3Meta.setDisplayName(ChatColor.GREEN + "Emerald Pickaxe");
    ArrayList<String> Tier3Picklore = new ArrayList();
    Tier3Picklore.add(ChatColor.GOLD + "Tier III");
    Tier3Picklore.add("");
    Tier3Picklore.add(ChatColor.BLUE + "3x Durability");
    EmeraldPickaxe3Meta.setLore(Tier3Picklore);
    this.EmeraldPickaxe3.setItemMeta(EmeraldPickaxe3Meta);
  
    ShapedRecipe EmeraldPickaxe3Recipe = new ShapedRecipe(this.EmeraldPickaxe3);
    EmeraldPickaxe3Recipe.shape(new String[] { "EDE", " N ", " S " });
    EmeraldPickaxe3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldPickaxe3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldPickaxe3Recipe.setIngredient('E', Material.EMERALD);
    EmeraldPickaxe3Recipe.setIngredient('S', Material.STICK);
    this.EmeraldPickaxe3.setDurability((short)(this.EmeraldPickaxe3.getDurability() * 3));
    server.addRecipe(EmeraldPickaxe3Recipe);
  }

  public void axeRecipe()
  {
    Server server = getServer();
  


    this.EmeraldAxe = new ItemStack(Material.DIAMOND_AXE, 1);
    ItemMeta EmeraldAxeMeta = this.EmeraldAxe.getItemMeta();
    EmeraldAxeMeta.setDisplayName(ChatColor.GREEN + "Emerald Axe");
    ArrayList<String> Tier1Axelore = new ArrayList();
    Tier1Axelore.add(ChatColor.GOLD + "Tier I");
    Tier1Axelore.add("");
    EmeraldAxeMeta.setLore(Tier1Axelore);
    this.EmeraldAxe.setItemMeta(EmeraldAxeMeta);
  
    ShapedRecipe EmeraldAxeRecipe = new ShapedRecipe(this.EmeraldAxe);
    EmeraldAxeRecipe.shape(new String[] { "EE ", "ES ", " S " });
    EmeraldAxeRecipe.setIngredient('E', Material.EMERALD);
    EmeraldAxeRecipe.setIngredient('S', Material.STICK);
    server.addRecipe(EmeraldAxeRecipe);
  




    this.EmeraldAxe2 = new ItemStack(Material.DIAMOND_AXE, 1);
    ItemMeta EmeraldAxe2Meta = this.EmeraldAxe2.getItemMeta();
    EmeraldAxe2Meta.setDisplayName(ChatColor.GREEN + "Emerald Axe");
    ArrayList<String> Tier2Axelore = new ArrayList();
    Tier2Axelore.add(ChatColor.GOLD + "Tier II");
    Tier2Axelore.add("");
    Tier2Axelore.add(ChatColor.BLUE + "2x Durability");
    EmeraldAxe2Meta.setLore(Tier2Axelore);
    this.EmeraldAxe2.setItemMeta(EmeraldAxe2Meta);
  
    ShapedRecipe EmeraldAxe2Recipe = new ShapedRecipe(this.EmeraldAxe2);
    EmeraldAxe2Recipe.shape(new String[] { "EE ", "DS ", " S " });
    EmeraldAxe2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldAxe2Recipe.setIngredient('E', Material.EMERALD);
    EmeraldAxe2Recipe.setIngredient('S', Material.STICK);
    this.EmeraldAxe2.setDurability((short)(this.EmeraldAxe2.getDurability() * 2));
    server.addRecipe(EmeraldAxe2Recipe);
  




    this.EmeraldAxe3 = new ItemStack(Material.DIAMOND_AXE, 1);
    ItemMeta EmeraldAxe3Meta = this.EmeraldAxe3.getItemMeta();
    EmeraldAxe3Meta.setDisplayName(ChatColor.GREEN + "Emerald Axe");
    ArrayList<String> Tier3Axelore = new ArrayList();
    Tier3Axelore.add(ChatColor.GOLD + "Tier III");
    Tier3Axelore.add("");
    Tier3Axelore.add(ChatColor.BLUE + "3x Durability");
    EmeraldAxe3Meta.setLore(Tier3Axelore);
    this.EmeraldAxe3.setItemMeta(EmeraldAxe3Meta);
  
    ShapedRecipe EmeraldAxe3Recipe = new ShapedRecipe(this.EmeraldAxe3);
    EmeraldAxe3Recipe.shape(new String[] { "NE ", "DS ", " S " });
    EmeraldAxe3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldAxe3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldAxe3Recipe.setIngredient('E', Material.EMERALD);
    EmeraldAxe3Recipe.setIngredient('S', Material.STICK);
    this.EmeraldAxe3.setDurability((short)(this.EmeraldAxe3.getDurability() * 3));
    server.addRecipe(EmeraldAxe3Recipe);
  }

  public void shovelRecipe()
  {
    Server server = getServer();
  


    this.EmeraldSpade = new ItemStack(Material.DIAMOND_SPADE, 1);
    ItemMeta EmeraldSpadeMeta = this.EmeraldSpade.getItemMeta();
    EmeraldSpadeMeta.setDisplayName(ChatColor.GREEN + "Emerald Spade");
    ArrayList<String> Tier1Spadelore = new ArrayList();
    Tier1Spadelore.add(ChatColor.GOLD + "Tier I");
    Tier1Spadelore.add("");
    EmeraldSpadeMeta.setLore(Tier1Spadelore);
    this.EmeraldSpade.setItemMeta(EmeraldSpadeMeta);
  
    ShapedRecipe EmeraldSpadeRecipe = new ShapedRecipe(this.EmeraldSpade);
    EmeraldSpadeRecipe.shape(new String[] { " E ", " S ", " S " });
    EmeraldSpadeRecipe.setIngredient('E', Material.EMERALD);
    EmeraldSpadeRecipe.setIngredient('S', Material.STICK);
    server.addRecipe(EmeraldSpadeRecipe);
  




    this.EmeraldSpade2 = new ItemStack(Material.DIAMOND_SPADE, 1);
    ItemMeta EmeraldSpade2Meta = this.EmeraldSpade2.getItemMeta();
    EmeraldSpade2Meta.setDisplayName(ChatColor.GREEN + "Emerald Spade");
    ArrayList<String> Tier2Spadelore = new ArrayList();
    Tier2Spadelore.add(ChatColor.GOLD + "Tier II");
    Tier2Spadelore.add("");
    Tier2Spadelore.add(ChatColor.BLUE + "2x Durability");
    EmeraldSpade2Meta.setLore(Tier2Spadelore);
    this.EmeraldSpade2.setItemMeta(EmeraldSpade2Meta);
  
    ShapedRecipe EmeraldSpade2Recipe = new ShapedRecipe(this.EmeraldSpade2);
    EmeraldSpade2Recipe.shape(new String[] { "DE ", " S ", " S " });
    EmeraldSpade2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldSpade2Recipe.setIngredient('E', Material.EMERALD);
    EmeraldSpade2Recipe.setIngredient('S', Material.STICK);
    this.EmeraldSpade2.setDurability((short)(this.EmeraldSpade2.getDurability() * 2));
    server.addRecipe(EmeraldSpade2Recipe);
  




    this.EmeraldSpade3 = new ItemStack(Material.DIAMOND_SPADE, 1);
    ItemMeta EmeraldSpade3Meta = this.EmeraldSpade3.getItemMeta();
    EmeraldSpade3Meta.setDisplayName(ChatColor.GREEN + "Emerald Spade");
    ArrayList<String> Tier3Spadelore = new ArrayList();
    Tier3Spadelore.add(ChatColor.GOLD + "Tier III");
    Tier3Spadelore.add("");
    Tier3Spadelore.add(ChatColor.BLUE + "3x Durability");
    EmeraldSpade3Meta.setLore(Tier3Spadelore);
    this.EmeraldSpade3.setItemMeta(EmeraldSpade3Meta);
  
    ShapedRecipe EmeraldSpade3Recipe = new ShapedRecipe(this.EmeraldSpade3);
    EmeraldSpade3Recipe.shape(new String[] { "DEN", " S ", " S " });
    EmeraldSpade3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldSpade3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldSpade3Recipe.setIngredient('E', Material.EMERALD);
    EmeraldSpade3Recipe.setIngredient('S', Material.STICK);
    this.EmeraldSpade3.setDurability((short)(this.EmeraldSpade3.getDurability() * 3));
    server.addRecipe(EmeraldSpade3Recipe);
  }

  public void hoeRecipe()
  {
    Server server = getServer();
  


    this.EmeraldHoe = new ItemStack(Material.DIAMOND_HOE, 1);
    ItemMeta EmeraldHoeMeta = this.EmeraldHoe.getItemMeta();
    EmeraldHoeMeta.setDisplayName(ChatColor.GREEN + "Emerald Hoe");
    ArrayList<String> Tier1Hoelore = new ArrayList();
    Tier1Hoelore.add(ChatColor.GOLD + "Tier I");
    Tier1Hoelore.add("");
    EmeraldHoeMeta.setLore(Tier1Hoelore);
    this.EmeraldHoe.setItemMeta(EmeraldHoeMeta);
  
    ShapedRecipe EmeraldHoeRecipe = new ShapedRecipe(this.EmeraldHoe);
    EmeraldHoeRecipe.shape(new String[] { "EE ", " S ", " S " });
    EmeraldHoeRecipe.setIngredient('E', Material.EMERALD);
    EmeraldHoeRecipe.setIngredient('S', Material.STICK);
    server.addRecipe(EmeraldHoeRecipe);
  




    this.EmeraldHoe2 = new ItemStack(Material.DIAMOND_HOE, 1);
    ItemMeta EmeraldHoe2Meta = this.EmeraldHoe2.getItemMeta();
    EmeraldHoe2Meta.setDisplayName(ChatColor.GREEN + "Emerald Hoe");
    ArrayList<String> Tier2Hoelore = new ArrayList();
    Tier2Hoelore.add(ChatColor.GOLD + "Tier II");
    Tier2Hoelore.add("");
    Tier2Hoelore.add(ChatColor.BLUE + "2x Durability");
    EmeraldHoe2Meta.setLore(Tier2Hoelore);
    this.EmeraldHoe2.setItemMeta(EmeraldHoe2Meta);
  
    ShapedRecipe EmeraldHoe2Recipe = new ShapedRecipe(this.EmeraldHoe2);
    EmeraldHoe2Recipe.shape(new String[] { "ED ", " S ", " S " });
    EmeraldHoe2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldHoe2Recipe.setIngredient('E', Material.EMERALD);
    EmeraldHoe2Recipe.setIngredient('S', Material.STICK);
    this.EmeraldHoe2.setDurability((short)(this.EmeraldHoe2.getDurability() * 2));
    server.addRecipe(EmeraldHoe2Recipe);
  




    this.EmeraldHoe3 = new ItemStack(Material.DIAMOND_HOE, 1);
    ItemMeta EmeraldHoe3Meta = this.EmeraldHoe3.getItemMeta();
    EmeraldHoe3Meta.setDisplayName(ChatColor.GREEN + "Emerald Hoe");
    ArrayList<String> Tier3Hoelore = new ArrayList();
    Tier3Hoelore.add(ChatColor.GOLD + "Tier III");
    Tier3Hoelore.add("");
    Tier3Hoelore.add(ChatColor.BLUE + "3x Durability");
    EmeraldHoe3Meta.setLore(Tier3Hoelore);
    this.EmeraldHoe3.setItemMeta(EmeraldHoe3Meta);
  
    ShapedRecipe EmeraldHoe3Recipe = new ShapedRecipe(this.EmeraldHoe3);
    EmeraldHoe3Recipe.shape(new String[] { "ED ", " N ", " S " });
    EmeraldHoe3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldHoe3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldHoe3Recipe.setIngredient('E', Material.EMERALD);
    EmeraldHoe3Recipe.setIngredient('S', Material.STICK);
    this.EmeraldHoe3.setDurability((short)(this.EmeraldHoe3.getDurability() * 3));
    server.addRecipe(EmeraldHoe3Recipe);
  }

  public void helmetRecipe()
  {
    Server server = getServer();
  


    this.EmeraldHelm = new ItemStack(Material.DIAMOND_HELMET, 1);
    ItemMeta EmeraldHelmMeta = this.EmeraldHelm.getItemMeta();
    EmeraldHelmMeta.setDisplayName(ChatColor.GREEN + "Emerald Helmet");
    ArrayList<String> Tier1Helmlore = new ArrayList();
    Tier1Helmlore.add(ChatColor.GOLD + "Tier I");
    Tier1Helmlore.add("");
    EmeraldHelmMeta.setLore(Tier1Helmlore);
    this.EmeraldHelm.setItemMeta(EmeraldHelmMeta);
  
    ShapedRecipe EmeraldHelmRecipe = new ShapedRecipe(this.EmeraldHelm);
    EmeraldHelmRecipe.shape(new String[] { "EEE", "E E", "  " });
    EmeraldHelmRecipe.setIngredient('E', Material.EMERALD);
    server.addRecipe(EmeraldHelmRecipe);
  




    this.EmeraldHelm2 = new ItemStack(Material.DIAMOND_HELMET, 1);
    ItemMeta EmeraldHelm2Meta = this.EmeraldHelm2.getItemMeta();
    EmeraldHelm2Meta.setDisplayName(ChatColor.GREEN + "Emerald Helmet");
    ArrayList<String> Tier2Helmlore = new ArrayList();
    Tier2Helmlore.add(ChatColor.GOLD + "Tier II");
    Tier2Helmlore.add("");
    Tier2Helmlore.add(ChatColor.BLUE + "2x Durability");
    EmeraldHelm2Meta.setLore(Tier2Helmlore);
    this.EmeraldHelm2.setItemMeta(EmeraldHelm2Meta);
  
    ShapedRecipe EmeraldHelm2Recipe = new ShapedRecipe(this.EmeraldHelm2);
    EmeraldHelm2Recipe.shape(new String[] { "EEE", "EDE", "  " });
    EmeraldHelm2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldHelm2Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldHelm2.setDurability((short)(this.EmeraldHelm2.getDurability() * 2));
    server.addRecipe(EmeraldHelm2Recipe);
  




    this.EmeraldHelm3 = new ItemStack(Material.DIAMOND_HELMET, 1);
    ItemMeta EmeraldHelm3Meta = this.EmeraldHelm3.getItemMeta();
    EmeraldHelm3Meta.setDisplayName(ChatColor.GREEN + "Emerald Helmet");
    ArrayList<String> Tier3Helmlore = new ArrayList();
    Tier3Helmlore.add(ChatColor.GOLD + "Tier III");
    Tier3Helmlore.add("");
    Tier3Helmlore.add(ChatColor.BLUE + "3x Durability");
    EmeraldHelm3Meta.setLore(Tier3Helmlore);
    this.EmeraldHelm3.setItemMeta(EmeraldHelm3Meta);
  
    ShapedRecipe EmeraldHelm3Recipe = new ShapedRecipe(this.EmeraldHelm3);
    EmeraldHelm3Recipe.shape(new String[] { "EEE", "D N", "  " });
    EmeraldHelm3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldHelm3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldHelm3Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldHelm3.setDurability((short)(this.EmeraldHelm3.getDurability() * 3));
    server.addRecipe(EmeraldHelm3Recipe);
  }

  public void chestplateRecipe()
  {
    Server server = getServer();
  



    this.EmeraldChestplate = new ItemStack(Material.DIAMOND_CHESTPLATE, 1);
    ItemMeta EmeraldChestplateMeta = this.EmeraldChestplate.getItemMeta();
    EmeraldChestplateMeta.setDisplayName(ChatColor.GREEN + "Emerald Chestplate");
    ArrayList<String> Tier1Chestlore = new ArrayList();
    Tier1Chestlore.add(ChatColor.GOLD + "Tier I");
    Tier1Chestlore.add("");
    EmeraldChestplateMeta.setLore(Tier1Chestlore);
    this.EmeraldChestplate.setItemMeta(EmeraldChestplateMeta);
  
    ShapedRecipe EmeraldChestplateRecipe = new ShapedRecipe(this.EmeraldChestplate);
    EmeraldChestplateRecipe.shape(new String[] { "E E", "EEE", "EEE" });
    EmeraldChestplateRecipe.setIngredient('E', Material.EMERALD);
    server.addRecipe(EmeraldChestplateRecipe);
  




    this.EmeraldChestplate2 = new ItemStack(Material.DIAMOND_CHESTPLATE, 1);
    ItemMeta EmeraldChestplate2Meta = this.EmeraldChestplate2.getItemMeta();
    EmeraldChestplate2Meta.setDisplayName(ChatColor.GREEN + "Emerald Chestplate");
    ArrayList<String> Tier2Chestlore = new ArrayList();
    Tier2Chestlore.add(ChatColor.GOLD + "Tier II");
    Tier2Chestlore.add("");
    Tier2Chestlore.add(ChatColor.BLUE + "2x Durability");
    EmeraldChestplate2Meta.setLore(Tier2Chestlore);
    this.EmeraldChestplate2.setItemMeta(EmeraldChestplate2Meta);
  
    ShapedRecipe EmeraldChestplate2Recipe = new ShapedRecipe(this.EmeraldChestplate2);
    EmeraldChestplate2Recipe.shape(new String[] { "EDE", "EEE", "EEE" });
    EmeraldChestplate2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldChestplate2Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldChestplate2.setDurability((short)(this.EmeraldChestplate.getDurability() * 2));
    server.addRecipe(EmeraldChestplate2Recipe);
  




    this.EmeraldChestplate3 = new ItemStack(Material.DIAMOND_CHESTPLATE, 1);
    ItemMeta EmeraldChestplate3Meta = this.EmeraldChestplate3.getItemMeta();
    EmeraldChestplate3Meta.setDisplayName(ChatColor.GREEN + "Emerald Chestplate");
    ArrayList<String> Tier3Chestlore = new ArrayList();
    Tier3Chestlore.add(ChatColor.GOLD + "Tier III");
    Tier3Chestlore.add("");
    Tier3Chestlore.add(ChatColor.BLUE + "3x Durability");
    EmeraldChestplate3Meta.setLore(Tier3Chestlore);
    this.EmeraldChestplate3.setItemMeta(EmeraldChestplate3Meta);
  
    ShapedRecipe EmeraldChestplate3Recipe = new ShapedRecipe(this.EmeraldChestplate3);
    EmeraldChestplate3Recipe.shape(new String[] { "EDE", "ENE", "EEE" });
    EmeraldChestplate3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldChestplate3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldChestplate3Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldChestplate3.setDurability((short)(this.EmeraldChestplate3.getDurability() * 3));
    server.addRecipe(EmeraldChestplate3Recipe);
  }

  public void leggingsRecipe()
  {
    Server server = getServer();
  


    this.EmeraldLeggings = new ItemStack(Material.DIAMOND_LEGGINGS, 1);
    ItemMeta EmeraldLeggingsMeta = this.EmeraldLeggings.getItemMeta();
    EmeraldLeggingsMeta.setDisplayName(ChatColor.GREEN + "Emerald Leggings");
    ArrayList<String> Tier1Legslore = new ArrayList();
    Tier1Legslore.add(ChatColor.GOLD + "Tier I");
    Tier1Legslore.add("");
    EmeraldLeggingsMeta.setLore(Tier1Legslore);
    this.EmeraldLeggings.setItemMeta(EmeraldLeggingsMeta);
  
    ShapedRecipe EmeraldLeggingsRecipe = new ShapedRecipe(this.EmeraldLeggings);
    EmeraldLeggingsRecipe.shape(new String[] { "EEE", "E E", "E E" });
    EmeraldLeggingsRecipe.setIngredient('E', Material.EMERALD);
    server.addRecipe(EmeraldLeggingsRecipe);
  




    this.EmeraldLeggings2 = new ItemStack(Material.DIAMOND_LEGGINGS, 1);
    ItemMeta EmeraldLeggings2Meta = this.EmeraldLeggings2.getItemMeta();
    EmeraldLeggings2Meta.setDisplayName(ChatColor.GREEN + "Emerald Leggings");
    ArrayList<String> Tier2Legslore = new ArrayList();
    Tier2Legslore.add(ChatColor.GOLD + "Tier II");
    Tier2Legslore.add("");
    Tier2Legslore.add(ChatColor.BLUE + "2x Durability");
    EmeraldLeggings2Meta.setLore(Tier2Legslore);
    this.EmeraldLeggings2.setItemMeta(EmeraldLeggings2Meta);
  
    ShapedRecipe EmeraldLeggings2Recipe = new ShapedRecipe(this.EmeraldLeggings2);
    EmeraldLeggings2Recipe.shape(new String[] { "EEE", "EDE", "E E" });
    EmeraldLeggings2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldLeggings2Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldLeggings2.setDurability((short)(this.EmeraldLeggings2.getDurability() * 2));
    server.addRecipe(EmeraldLeggings2Recipe);
  




    this.EmeraldLeggings3 = new ItemStack(Material.DIAMOND_LEGGINGS, 1);
    ItemMeta EmeraldLeggings3Meta = this.EmeraldLeggings3.getItemMeta();
    EmeraldLeggings3Meta.setDisplayName(ChatColor.GREEN + "Emerald Leggings");
    ArrayList<String> Tier3Legslore = new ArrayList();
    Tier3Legslore.add(ChatColor.GOLD + "Tier III");
    Tier3Legslore.add("");
    Tier3Legslore.add(ChatColor.BLUE + "3x Durability");
    EmeraldLeggings3Meta.setLore(Tier3Legslore);
    this.EmeraldLeggings3.setItemMeta(EmeraldLeggings3Meta);
  
    ShapedRecipe EmeraldLeggings3Recipe = new ShapedRecipe(this.EmeraldLeggings3);
    EmeraldLeggings3Recipe.shape(new String[] { "EEE", "EDE", "ENE" });
    EmeraldLeggings3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldLeggings3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldLeggings3Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldLeggings3.setDurability((short)(this.EmeraldLeggings3.getDurability() * 3));
    server.addRecipe(EmeraldLeggings3Recipe);
  }

  public void bootsRecipe()
  {
    Server server = getServer();
  


    this.EmeraldBoots = new ItemStack(Material.DIAMOND_BOOTS, 1);
    ItemMeta EmeraldBootsMeta = this.EmeraldBoots.getItemMeta();
    EmeraldBootsMeta.setDisplayName(ChatColor.GREEN + "Emerald Boots");
    ArrayList<String> Tier1Bootslore = new ArrayList();
    Tier1Bootslore.add(ChatColor.GOLD + "Tier I");
    Tier1Bootslore.add("");
    EmeraldBootsMeta.setLore(Tier1Bootslore);
    this.EmeraldBoots.setItemMeta(EmeraldBootsMeta);
  
    ShapedRecipe EmeraldBootsRecipe = new ShapedRecipe(this.EmeraldBoots);
    EmeraldBootsRecipe.shape(new String[] { "  ", "E E", "E E" });
    EmeraldBootsRecipe.setIngredient('E', Material.EMERALD);
    server.addRecipe(EmeraldBootsRecipe);
  




    this.EmeraldBoots2 = new ItemStack(Material.DIAMOND_BOOTS, 1);
    ItemMeta EmeraldBoots2Meta = this.EmeraldBoots2.getItemMeta();
    EmeraldBoots2Meta.setDisplayName(ChatColor.GREEN + "Emerald Boots");
    ArrayList<String> Tier2Bootslore = new ArrayList();
    Tier2Bootslore.add(ChatColor.GOLD + "Tier II");
    Tier2Bootslore.add("");
    Tier2Bootslore.add(ChatColor.BLUE + "2x Durability");
    EmeraldBoots2Meta.setLore(Tier2Bootslore);
    this.EmeraldBoots2.setItemMeta(EmeraldBoots2Meta);
  
    ShapedRecipe EmeraldBoots2Recipe = new ShapedRecipe(this.EmeraldBoots2);
    EmeraldBoots2Recipe.shape(new String[] { "EDE", "E E" });
    EmeraldBoots2Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldBoots2Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldBoots2.setDurability((short)(this.EmeraldBoots2.getDurability() * 2));
    server.addRecipe(EmeraldBoots2Recipe);
  




    this.EmeraldBoots3 = new ItemStack(Material.DIAMOND_BOOTS, 1);
    ItemMeta EmeraldBoots3Meta = this.EmeraldBoots3.getItemMeta();
    EmeraldBoots3Meta.setDisplayName(ChatColor.GREEN + "Emerald Boots");
    ArrayList<String> Tier3Bootslore = new ArrayList();
    Tier3Bootslore.add(ChatColor.GOLD + "Tier III");
    Tier3Bootslore.add("");
    Tier3Bootslore.add(ChatColor.BLUE + "3x Durability");
    EmeraldBoots3Meta.setLore(Tier3Bootslore);
    this.EmeraldBoots3.setItemMeta(EmeraldBoots3Meta);
  
    ShapedRecipe EmeraldBoots3Recipe = new ShapedRecipe(this.EmeraldBoots3);
    EmeraldBoots3Recipe.shape(new String[] { "EDE", "ENE" });
    EmeraldBoots3Recipe.setIngredient('N', Material.BLAZE_POWDER);
    EmeraldBoots3Recipe.setIngredient('D', Material.DIAMOND);
    EmeraldBoots3Recipe.setIngredient('E', Material.EMERALD);
    this.EmeraldBoots3.setDurability((short)(this.EmeraldBoots3.getDurability() * 3));
    server.addRecipe(EmeraldBoots3Recipe);
  }

  public void onEnable()
  {
    Bukkit.getServer().getPluginManager().registerEvents(this, this);
  
    all();
  }
}


plugin.yml
Kod:
name: Emeraldtools
version: 1.5.7
main: com.**********.emeraldtools
 

Darkless05

Demir Madencisi
En iyi cevaplar
0
kardeşim forumda fazla plugin bilgisi olan yok sen bunu jar yap plugin olarak ver. Bu kaynak kodları birleştirebilenler az sanırım forumda
 
V

VerectusGC

Ziyaretçi
Yazan Adam Kimse Destan Yazmayı İyi Biliyormuş xD
 
Üst