private static string GetGameModeLabel(MinecraftBedrockGameMode gameType) { return(gameType switch { MinecraftBedrockGameMode.Creative => "creative", _ => "survival", });
public static string GetEnvironmentVariable(this MinecraftBedrockGameMode gameType) { return($"GAMEMODE={GetGameModeLabel(gameType)}"); }