Played for your class? I used to get really fucking nervous (still do) when I played in front of people, especially when expectations are high for me to do good. It is a good experience, even if you fuck up ever other note. You will later learn not to care and you will play more at ease. You need to be a little cocky to boost your self esteem. Hope that helps, probably not
Ah it's okay man! I agree, either way it's good experience to have under your belt. You'll be less and less nervous the more you play in front of people!