Recipes for items are not correct, for example only one recipe for creating WOODEN_AXE and requires ACACIA_PLANKS.
Attached a image of the outpout of that code:
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (!(sender instanceof Player)) return false;
Player p = (Player) sender;
List<Recipe> lr =Bukkit.getRecipesFor(p.getInventory().getItemInMainHand());
int i = 0;
for(Recipe r : lr)
return true;