@@ -0,0 +1,1627 @@
+package info.tregmine.tools;%0A%0Aimport java.util.HashMap;%0A%0Aimport info.tregmine.Tregmine;%0Aimport info.tregmine.api.TregminePlayer;%0Aimport info.tregmine.commands.AbstractCommand;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.inventory.ItemStack;%0A%0Apublic class ToolSpawnCommand extends AbstractCommand%0A%7B%0A    public ToolSpawnCommand(Tregmine tregmine)%0A    %7B%0A        super(tregmine, %22tool%22);%0A    %7D%0A%0A    @Override%0A    public boolean handlePlayer(TregminePlayer player, String args%5B%5D)%0A    %7B%0A        if (!player.getRank().canSpawnTools()) return true;%0A        if (args.length != 1) %7B%0A            player.sendMessage(ChatColor.RED + %22Usage: /tool %3Clumber/vein/aoe%3E%22);%0A            return true;%0A        %7D%0A        %0A        ItemStack tool = null;%0A        %0A        switch (args%5B0%5D) %7B%0A            case %22lumber%22:%0A                tool = ToolsRegistry.LumberAxe();%0A                break;%0A            case %22vein%22:%0A                tool = ToolsRegistry.VeinMiner();%0A                break;%0A            case %22aoe%22:%0A                tool = ToolsRegistry.AreaOfEffect();%0A                break;%0A        %7D%0A        %0A        if (tool == null) %7B%0A            player.sendMessage(ChatColor.RED + %22Usage: /tool %3Clumber/vein/aoe%3E%22);%0A            return true;%0A        %7D%0A        %0A        HashMap%3CInteger, ItemStack%3E failedItems = player.getInventory().addItem(tool);%0A        %0A        if (failedItems.size() %3E 0) %7B%0A            player.sendMessage(ChatColor.RED + %22You have a full inventory, Can't add tool!%22);%0A            return true;%0A        %7D%0A        %0A        player.sendMessage(ChatColor.GREEN + %22Spawned in tool token successfully!%22);%0A        return true;%0A    %7D%0A%7D%0A

Create ToolSpawnCommand.java