Fans are going to be thinking twice before throwing things at players.