rcmds.gamemodercmds.exempt.gamemode/gamemode Allows the [gamemode] of the (player) to be changed
Without a [gamemode] the command will cycle through creative and survival for the (player), without a (player) the command will change the gamemode for the player whom sent the command
Ff no (player) and [gamemode] is specified the gamemode of the player sending the command will cycle between creative and survival
/gamemode spectator - Would set the gamemode of the sender to spectator
/gamemode Notch spectator - Would set the gamemode of the player Notch to spectator
/gamemode - Would cycle between the gamemode of the sender between creative and survival