@@ -0,0 +1,3261 @@
+package info.tregmine.tools;%0A%0Aimport info.tregmine.Tregmine;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.bukkit.Material;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.Listener;%0Aimport org.bukkit.event.inventory.PrepareItemCraftEvent;%0Aimport org.bukkit.inventory.ItemStack;%0Aimport org.bukkit.inventory.meta.ItemMeta;%0A%0Apublic class ToolCraft implements Listener%0A%7B%0A    @SuppressWarnings(%22unused%22)%0A    private Tregmine plugin;%0A%0A    public ToolCraft(Tregmine instance)%0A    %7B%0A        this.plugin = instance;%0A    %7D%0A    %0A    @EventHandler%0A    public void CraftTool(PrepareItemCraftEvent event)%7B%0A        if (event.isRepair()) return;%0A        %0A        List%3CItemStack%3E items = new ArrayList%3CItemStack%3E();%0A        boolean success = false;%0A        for(ItemStack a : event.getInventory().getContents()) %7B%0A            if(a.getType().equals(Material.AIR)) continue;%0A            items.add(a);%0A        %7D // Get an easier to handle list.%0A%0A        if (items.size() != 3) return; // If not two items in inventory then Stop%0A%0A        if (items.contains(ToolsRegistry.LumberAxe())) %7B%0A            for (ItemStack i : items)%7B%0A                if(ToolsRegistry.LumberAxeAllowed.contains(i.getType())) %7B%0A                    ItemMeta iMeta = i.getItemMeta();%0A                    %0A                    List%3CString%3E lore = new ArrayList%3CString%3E();%0A                    lore.add(ToolsRegistry.LumberAxeLoreTag);%0A                    lore.add(ToolsRegistry.durabilityLoreTag);%0A                    iMeta.setLore(lore);%0A                    %0A                    i.setItemMeta(iMeta);%0A                    event.getInventory().setResult(i);%0A                    success = true;%0A                %7D%0A            %7D%0A        %7D else if (items.contains(ToolsRegistry.VeinMiner()))%7B%0A            for (ItemStack i : items)%7B%0A                if(ToolsRegistry.VeinMinerAllowed.contains(i.getType())) %7B%0A                    ItemMeta iMeta = i.getItemMeta();%0A                    %0A                    List%3CString%3E lore = new ArrayList%3CString%3E();%0A                    lore.add(ToolsRegistry.VeinMinerLoreTag);%0A                    lore.add(ToolsRegistry.durabilityLoreTag);%0A                    iMeta.setLore(lore);%0A                    %0A                    i.setItemMeta(iMeta);%0A                    event.getInventory().setResult(i);%0A                    success = true;%0A                %7D%0A            %7D%0A        %7D else if (items.contains(ToolsRegistry.AreaOfEffect()))%7B%0A            for (ItemStack i : items)%7B%0A                if(ToolsRegistry.AreaOfEffectAllowed.contains(i.getType())) %7B%0A                    ItemMeta iMeta = i.getItemMeta();%0A                    %0A                    List%3CString%3E lore = new ArrayList%3CString%3E();%0A                    lore.add(ToolsRegistry.AreaOfEffectLoreTag);%0A                    lore.add(ToolsRegistry.durabilityLoreTag);%0A                    iMeta.setLore(lore);%0A                    %0A                    i.setItemMeta(iMeta);%0A                    event.getInventory().setResult(i);%0A                    success = true;%0A                %7D%0A            %7D%0A        %7D else %7B%0A            event.getInventory().setResult(null);%0A            return;%0A        %7D%0A        %0A        if (success == false) %7B%0A            event.getInventory().setResult(null);%0A        %7D%0A    %7D%0A    %0A%7D%0A

Create ToolCraft.java