set %who:PLAYER_POSSESSIVE% (gamemode|gm) [to] %mode:EXPR% — Statements

set %who:PLAYER_POSSESSIVE% (gamemode|gm) [to] %mode:EXPR%
Player1.0.0

Description

Sets a player's gamemode.

Examples

set player's gamemode to "creative"

All Possible Usages (4)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

set <who> gamemode <mode>
set <who> gm <mode>
set <who> gamemode to <mode>
set <who> gm to <mode>

Related (Player)