Marcel Thomas/FilmMagic(MIAMI) -- There’s no doubt that Michael Jordan is one of the greatest athletes of all time. But, his success on the basketball court hasn’t given him a free pass when it comes to the clothes he wears when he’s playing other sports: Jordan was banned from Miami’s La Gorce Country Club on Wednesday for wearing cargo shorts on the golf course and refusing to change.

An avid golfer, Jordan isn’t a member at the Jack Nicklaus-designed course, but was playing golf at the facility when he was approached by club personnel.

According to the L.A. Times, the six-time NBA champion was in the middle of playing 18 holes when he was asked to return to the clubhouse and change his cargo shorts. When Jordan refused, the club asked that he never return, and he left.

The La Gorce Country Club declined to comment on the incident, but a member told ABC News that the club has a strict dress code and that members have been reprimanded for not tucking in shirts or wearing flip-flops instead of shoes.

Jordan’s rep released the following statement regarding the incident:

“Michael Jordan did wear cargo pants. He had been there many times before and had worn cargo pants previously, and had never been made aware that he was violating any dress code. This time, he was made aware of the violation on the 12th hole, and at that point he did refuse to interrupt his game, and return to the clubhouse and change. We were not aware that he is not allowed to return to La Gorce. I guess it’s their loss — as MJ is a great golfer, and a great guest.”

This isn’t the first time Jordan’s wardrobe has come under fire. Earlier this year, he was seen at the Ryder Cup golf tournament in Medinah, Ill. wearing an all blue outfit of washed-out jeans and a puffy vest, something that didn’t sit well with golf aficionados. The faux pas inspired a network of websites that poke fun at his style.