A man has been banned from attending football games for three years after racially abusing players following a match.