Major League Baseball will require Josh Hader to take sensitivity training and participate in the league's diversity and inclusion initiatives after tweets from his past emerged during Tuesday's All-Star Game.

After a rough outing on the mound, some racist and anti-gay tweets that Hader sent when he was a teenager surfaced. He apologized after the game.

"During last night's game we became aware of Mr. Hader's unacceptable social media comments in years past and have since been in communication with the Brewers regarding our shared concerns," Major League Baseball said in a statement.

"After the game, Mr. Hader took the necessary step of expressing remorse for his highly offensive and hurtful language, which fails to represent the values of our game and our expectations for all those who are a part of it. The Office of the Commissioner will require sensitivity training for Mr. Hader and participation in MLB's diversity and inclusion initiatives."

The Brewers also issued a statement Wednesday, admonishing the pitcher for the tweets, but adding that they don't represent who Hader has become.

"His comments are inexcusable, and he is taking full responsibility for the consequences of his actions," the statement read. "Those of us that have come to know Josh do not believe that these posts are representative of his beliefs. He has been a good teammate and contributor to the team in every way. We will continue to work through this issue with Josh as we prepare to resume games after the break."