I would have a little request for a very small mod / instructions to programm this mod.
We have a small modpack and our host, is a little arrogant cheater.
You know these guys, who cheat and say i have crafted it all my save, but than you look in the logs and find out that he switches between surival and creative.
He is cheating really obvious, so I would like to Programm a little forge mod who crashes the client when you change your gamemode or use the give command and or the tp command.
Do you know how to programm something liek this?
I would be really interested in such an thing.
Thanks for reading, have a great day
Being the host means he'd have to install the mod himself. Which he obviously won't. Hosting a server is liscence to cheat on that server. Your only course of action is to find someone else to host your games.