OAKLAND -- A Piedmont Avenue bar that authorities associated with three shootings last year has agreed to hire security guards and reduce late-night hours rather than risk having its permit revoked.

In an agreement negotiated by City Attorney Barbara Parker, the owners of Egbert Souse's bar agreed to post two uniformed security guards after 8 p.m. Thursdays through Sundays and close no later than midnight every day of the week.

The bar located at the corner of Piedmont and West MacArthur Boulevard, also agreed to stop playing loud music, prevent outside loitering and permanently ban anyone caught using drugs, fighting or possessing a weapon.

Violation of the agreement could result in the bar losing permission to operate and sell alcohol.

Neighborhood leaders had pressed the city to take action against the bar following three separate incidents in which a bar patron was shot outside the building.

"Last year, Oakland spent a disproportionate amount of police resources investigating and responding to crime associated with this business," Parker said in a prepared statement Thursday. "Neighbors, police, my office and the owners all recognized that violence and other problems at this bar constituted a public nuisance and had to stop."