/gamemode [Name] [0,1, or 2]
/gamemode keepInventory true
There are no commands in minecraft PE as far as I know.
To change the gamemode of a player, you would use the command /gamemode and in the player spot you put the name of the person that you want to change the gamemode of
/gamemode 1/gamemode 2 /gamemode 0
In Minecraft, you can switch from Creative mode to Survival mode by using the command /gamemode survival or /gamemode 0. If you're using the Java Edition, you can also type /gamemode s. Ensure that you have the necessary permissions or cheats enabled to use these commands.
To promote someone use the command /op. This gives them operator privileges to commands such as /gamemode.
If you get this message in your server console:[INFO] tried command: gamemode then it's because your friend doesn't have operator powers and can't use commands.Type this command into the server console:op
/gamemode a
/gamemode 1 yournameSet back to 0 to revert back to survival mode.
/gamemodesurvival/gamemode creative /gamemode adventure
If you have cheats enabled, type "/gamemode c" or "/gamemode s"
The only way to fly in Vanilla Minecraft is by using the /gamemode creative, or /gamemode 1, commands. There is no way to fly in survival without external mods. On servers using essentials mod, there is a /fly command the allows a player to fly in survival mode.