As JaVale McGee worked on his jumper after a recent practice, his Golden State Warriors teammate Kevin Durant smiled nearby and told the media, “Oh, y’all on the JaVale bandwagon now.”

McGee has been one of the stars of the NBA postseason with his athletic play on both ends of the court, catching the attention of fans and media alike.

The 7-foot, 250-pound journeyman center has caught pretty alley-oops high above the rim. He once joined Warriors guard Stephen Curry in successfully trapping Portland Trail Blazers guard Damian Lillard during their first-round series. And McGee’s King Kong-like swats have made him a defensive force similar to shot-blockers Rudy Gobert and DeAndre Jordan.

“This has been somewhat of a redemption season,” McGee told The Undefeated. “This has been a great opportunity and platform to show what I have and to help this team.”

It wasn’t long ago that there was plenty of room on McGee’s bandwagon.

The free-agent pickings at center in late July 2016 were J.J. Evans slim. The Warriors were in desperate need of a rim protector after the departures of Andrew Bogut (trade) and Festus Ezeli (free agency). One of the remaining options was the injury-riddled McGee, a nine-year NBA veteran who averaged 5.1 points and 3.9 rebounds in 10.9 minutes per game for the Dallas Mavericks during the 2015-16 season. He had also played with the Washington Wizards, Denver Nuggets and Philadelphia 76ers.

To McGee’s chagrin, the Flint, Michigan, native was most famous for being a regular on Shaquille O’Neal’s television segment, Shaqtin’ a Fool, after making mistakes on the court. The segment led to a Twitter feud between the two this past season.

A FoxSports.com story after McGee signed with the Warriors described him as “the ever-bizarre JaVale McGee.” The San Jose Mercury News described him as “popular, athletic and occasionally goofy.”

McGee felt unfairly judged.

“I’ve had this same stigma on me as a player that has had cases in court,” McGee said. “I have the perception of being a distraction on and off the court for some reason. I haven’t done [anything]. Nothing at all. I have the same perception of guys doing bad stuff, getting DUIs and things like that. I have nothing like that.

“It’s frustrating knowing how hard you work. That is just the misconception of what people see. It’s just a testimony to keep working hard, stay positive and eventually things will work out for you.”

Who is the real McGee?

Agent B.J. Armstrong said his 29-year-old client might appear to be a tough guy, but he actually is a nerd at heart who loves computers, gadgets and film. McGee hails from a basketball family: His 6-foot-10 father, George Montgomery, was a 1985 second-round draft selection by the Portland Trail Blazers, and his mother is former WNBA star Pam McGee. JaVale McGee has a Pro-Am basketball team in Los Angeles’ famed Drew League that advanced to the league’s finals.

McGee has his own nonprofit organization called #JUGLIFE, which offers a challenge to drink a gallon of water a day. Co-founded by McGee and Kez Reed in December 2013, the goal of the foundation is to increase awareness of the importance of drinking water daily for healthy living. #JUGLIFE also has built wells in Matugga, Uganda, to provide clean water to a school with more than 500 children.

“Water is the most important thing in the world, to tell the truth,” said McGee. “I started drinking jugs of water in Denver. I was reading up on hydration and the benefits. I started drinking a gallon a day and writing on the [container] and putting a picture on Twitter. People starting hashtagging me back, ‘Jug Life,’ because that’s what I wrote on the bottle.

“I started retweeting stuff and reposting on Instagram. It just became a thing. Our business partner decided that we should sell apparel. He knew someone in Uganda who needed water wells, and we decided that could be a part of it also. I was supposed to go [to Uganda] this past summer, but I was fighting for a contract in the NBA. I didn’t have time to take a break by going to Uganda and miss some workouts. I will be a free agent again, but this summer will be shorter than any summer that I’ve had because we’re going until June.”

McGee said he received contract offers from two of the 30 NBA teams and an offer to play in China that he seriously considered. A non-playoff NBA team that McGee didn’t identify offered a guaranteed contract. The other NBA offer was from the Warriors, who offered a non-guaranteed contract paying a veteran’s minimum salary of $1.4 million.

Warriors general manager Bob Myers heard nothing but positive news when he did his background work on McGee, which included talking to Warriors forward Andre Iguodala, McGee’s ex-Nuggets teammate. Armstrong said Warriors coach Steve Kerr was a fan of McGee’s and had a vision of how his rim protection and athleticism could help ease the loss of Bogut.

Despite the non-guaranteed contract, the prospect of playing in the NBA Finals was too intriguing for McGee to pass on.

“JaVale has always been a unique and talented player who worked hard and was well-liked by his teammates,” Myers said. “We hoped he could provide us with a different element at the center position. Furthermore, when we were going through the process, several people, including Andre Iguodala, had extremely positive things to say about him.”

On his decision to sign with Golden State, McGee said: “It’s the Warriors. You have the greatest platform out here, besides maybe the markets of L.A. and New York. And we’re winning. There is no comparison. And then I didn’t realize until I got here how great the organization was, how good the players were and the coaches and everything. Just how smooth this operation is.”

McGee quickly showed he could be a rim-protecting force. On the first day of Warriors camp, Durant told reporters that McGee ran him down and blocked his shot from behind. McGee said he blocked six shots in the first practice. He also had three blocks in 16 minutes in the Warriors’ preseason opener against the Toronto Raptors. He said the Warriors figured out quickly how to use him offensively by way of the alley-oop pass.

The Warriors had several center options in newcomer starter Zaza Pachulia, veterans David West and Anderson Varejao, James Michael McAdoo, Kevon Looney and rookie Damian Jones. But none offered the athleticism on both ends that McGee did.

“They didn’t have anyone like me before,” McGee said. “I felt like they were using me just like a new toy. Like, ‘We’ve never done this before.’ ”

McGee received “did not play/coach’s decision” status four times and played double-digit minutes just once in the first 13 regular-season games. By late November, Kerr appeared to be growing more confident in using McGee. McGee eventually locked in the second center role behind Pachulia, which made it easier for the Warriors to eventually waive Varejao.

McGee saved his best month for April, averaging 10.3 points on 79.4 percent shooting from the field, 4.8 rebounds and 1.5 blocks in 13.5 minutes per game. For the season, the former Nevada star averaged 6.1 points on a career-best 65.2 percent shooting from the field and 3.2 rebounds in 9.6 minutes per game. His 77 games played were also his most since appearing in 79 during the 2012-13 season.

“He has been a huge key to our bench and has provided help on both ends of the floor,” Myers said. “Defensively he has provided rim protection, and offensively he has given us another dimension of vertical spacing. Teams are aware of him and where he is, on both ends of the floor.”

McGee’s blocks and dunks have been a regular on highlight reels of late. Durant added that McGee can catch an alley-oop just above the square on the backboard.

“His athleticism. He works extremely hard. He protects the rim for us. He’s a rim runner, so he opens it up for a lot of guys on the perimeter,” Durant said. “He’s playing to his strengths. The coaching staff has done a great job of putting him in great position. Obviously, he and Draymond [Green] have a great [alley-oop] connection along with Steph [Curry], everybody. We all feel like we can just toss the ball up there and he can go get it.”

McGee continued to blossom once the playoffs arrived. He ranks second in field goal percentage with a dominant 78.3 percent. He’s fourth in blocks with 2.3 in 12.1 minutes per game.

In Game 2 of the first-round series against Portland, McGee had 15 points, making all seven field goal attempts, five rebounds, one steal and four blocks in 13 minutes off the bench. He became the first player to record at least 15 points and four blocks in under 15 minutes in a playoff game, according to the Elias Sports Bureau.

McGee was confident he could play this way if given a chance.

“This is all I know,” McGee said. “I don’t know what else to do, but to keep working hard and keep playing basketball. I had people in my circle having worse feelings than me of what my future will be. I’m such an optimist. I don’t look at stuff [negatively]. I was definitely on my own side.”

When the Warriors swept the Blazers, McGee advanced past the first round of the playoffs for the first time. He can’t help but notice reminders of the Warriors’ 2015 NBA title when he walks into their practice facility and sees the celebratory murals on the wall. And if the Warriors are to win their second title in three years, McGee could bring his bandwagon to the celebration parade.

“It’s definitely a blessing,” McGee said. “They have pictures in the practice facility of them kissing the [championship] trophy. It’s crazy. That’s the point of all this. It’s definitely a blessing to be in a position to contend for that.”