CORNING (AP) -- A federal judge has banned guns from a Native American casino in Northern California that is at the center of an escalating tribal dispute, citing a potential threat to public safety.

U.S. District Judge Kimberly J. Mueller imposed a temporary restraining order Wednesday on the Paskenta Band of Nomlaki Indians prohibiting disputing factions from deploying armed guards or bringing firearms within 100 yards of the tribe's Rolling Hills Casino in Corning. The order remains in effect until July 2.

The judge stopped short of closing the $100 million-a-year casino, as one faction had requested, until the battle over who controls the tribe and its resources is resolved. The factions were scheduled to meet for mediation on Friday, the Sacramento Bee reported.

The office of Attorney General Kamala Harris filed the restraining order Tuesday to prevent any public safety threat after both sides hired armed personnel on the casino grounds. The weapons ban extends to tribal properties around the casino, including nearby hotels and an RV park.

The two rival security groups faced off on casino grounds on June 9, and deputies from the Tehama County Sheriff's Department had to intervene, Assistant Sheriff Phil Johnston said. Deputies spent a week at the casino trying to keep the peace, he said.

Tensions arose in April when the tribe's general council voted to remove more than 70 members from the tribe's rolls. The dispute centers around who qualifies for membership and the $54,000 a year in casino payments, as well as trust funds and scholarships for children.

Those taken off the rolls included three members of the tribe's governing body. They were recently reinstated -- even though they have been barred from entering the casino under orders from tribal chairman Andy Freeman.

Meanwhile, the federal Bureau of Indian Affairs on June 9 said it recognizes the three ousted council members as part of the tribe's governing body. A fourth tribal council member, who allegedly vacated his seat and joined the ranks of the three removed council members, is also being recognized by the federal agency.