(CNN) Ultimate Fighting Championship star Conor McGregor made a $50,000 bond Friday and will be back in court in June over allegations that he and others attacked a bus carrying UFC fighters in Brooklyn.

The incident Thursday at the Barclays Center left at least two athletes injured and unable to fight in Saturday night's UFC 223, set to be held at the same arena, UFC said.

McGregor, who wasn't on the UFC 223 card, is accused of three counts of criminal mischief, two counts of assault, one count of attempted assault, five counts of menacing and one count of reckless of endangerment, a court document says. Two of the criminal mischief charges are felonies.

His also was was ordered to stay away from five people involved in the incident. McGregor, who was not asked to enter a plea, left the courthouse without saying anything to the media.

Ira Judelson, a bail bondsman, said that McGregor, an Irish citizen, would be able to keep his passport. McGregor will have to check in with Judelson once a week, the bondsman said.