private static string GetDifficultyLabel(MinecraftBedrockDifficulty difficulty) { return(difficulty switch { MinecraftBedrockDifficulty.Easy => "easy", _ => "normal", });
public static string GetEnvironmentVariable(this MinecraftBedrockDifficulty difficulty) { return($"DIFFICULTY={GetDifficultyLabel(difficulty)}"); }