Well this isn't good. Somehow you've managed to land into some trouble with one of the teachers, and now you're stuck in detention. Well, whatever you did it couldn't have been good now that you're stuck in detention. Hopefully this is a Professor you don't hate, because if you hate them then it'll be a very long detention for you.