Los Angeles Superior Court Judge Patricia Schnegg told Brown that he could be sent to state prison if he violated any terms of his sentence , including an order to stay 100 yards away from Rihanna unless they 're attending music industry events .