ALAMEDA -- Raiders coach Dennis Allen likes a charitable cause as much as the next guy, but made it clear Monday he wasn't thrilled with the idea of his players risking injury in a benefit basketball game involving the San Francisco 49ers.

A handful of Raiders players, including free safety Tyvon Branch, cornerback Taiwan Jones, wide receiver Denarius Moore, cornerback Chimdi Chekwa, linebacker Sio Moore, wide receiver Greg Little, running back Latavius Murray and wide receiver Brice Butler, participated in the event at California High in San Ramon last Thursday.

"It is the right intent, to raise money for charity,'' Allen said. "I wasn't in agreement with the way in which they went about doing it, because they're paid to play football. Any time you put that at risk, you're taking a significant risk.''

Money went to several Bay Area charities, including foundations by Branch and Jones.

Players were informed of management's concerns about the event and potential injury. Some players, whose names were initially linked with the event, including offensive tackle Menelik Watson, running back Darren McFadden and running back Maurice Jones-Drew, ended up not participating.

Cornerback DJ Hayden, currently sidelined with a right foot sprain, attended the game but did not play.

"These are grown men and they make decisions on what they want to do with their personal time, and that was a decision those guys took part in,'' Allen said. "The thing I'm happy about is we were able to get out of it without any injuries.''

Branch saw the game as an opportunity to give back to the community and said, "I guess it's at your discretion what you want to do in the offeseason. We understand the risks involved in working out. Any time you're working out away from the facility you're putting yourself at risk. Guys do that they have to do to stay in shape. Everybody does it differently.''

The Raiders won the game 71-63, there were no security issues, and players mingled with fans for autographs and photographs afterward.