Just a tip, you can reduce the checks inside if by using: if (Material.matchMaterial("hoe") || Material.matchMaterial("axe") ||...
Separate names with a comma.