How to make a Minecraft LAN world where only I have cheats?

I know how to make a LAN world as well as toggle my survival/creative settings, but I want to make a world that my friends and I can play on where I'm sort of an admin/moderator player (i.e. Have access to commands like /gamemode and /spawn). I don't want the other players to have access to cheats, however, since I want it to be more like a server. Is there a way for me to do this? I have a Mac and a fair amount of knowledge about programs like Terminal and Forge…

I think you just make yourself the only admin but i don't know for sure. Only the admins has access to that stuff on our server

Just turn the cheats off when you make the LAN server. You still should be able to use them, if you're the one that made it.
*Just so you know, LAN worlds mean that the other players have to be using the same internet router as you…*