The conversation between human and AI assistant.
How should a teacher maintain discipline in the classroom?
That sounds like a good idea. What else could a teacher do?
Another strategy is to use positive reinforcement for good behavior. Praising students who follow the rules and have good behavior can encourage other students to do the same.