The principal called the students to give them a piece of his mind