Brad Pitt's red carpet attacker just pled no contest to battery and unlawful activity at an event -- and will do 20 days community labor for that crime ... but more importantly, the judge blocked him from getting even a sniff of any future Hollywood events.