With the command console open, all you'll need to do is type in your cheat code and the game will take care of the rest. If you're playing on another server, try pulling up the command console menu – this varies by platform, but can be performed on PC using the '/' key. If you're the one creating the server, you can simply enable this option during setup.
How to Teleport a Player to Another Player in Minecraft.How to Change the Gamemode of a Player in Minecraft.List of Useful Minecraft Server Commands.
Looking for something in particular? Click the links below to jump to.