getGameMode

fun CommandContext<CommandSourceStack>.getGameMode(name: String): GameMode

Retrieves a GameMode from the command context.